Vigyata.AI
Is this your channel?

Deploy Laravel On Cloudways And Use Redis Cache

1.5K views· 45 likes· 9:46· Nov 27, 2023

🛍️ Products Mentioned (3)

=== OFFER === GET 30% DISCOUNT ON ALL PLANS OF CLOUDWAYS HOSTING FOR 3 MONTHS https://unified.cloudways.com/signup?id=1029148&coupon=CW30FOR3 === Important Links === Fonts, extensions I use, and Support Laratips links: https://bit.ly/m/laratips === Video Related Links === === Other Videos === What's New In Laravel 9 https://youtu.be/qAzrZUG_9Z0 New In Laravel Playlist https://www.youtube.com/playlist?list=PL2DahmvUpeuu4UVWrcxlvVkMiI0SeS2OZ Laravel Package Development Playlist https://www.youtube.com/playlist?list=PL2DahmvUpeuu8HkpbNT-cKernolVdqZq_ Password Validation In Laravel with at least one Letters, Numbers, Upper and Lowercase or Symbols: https://youtu.be/f-g3P9imPZs Multiple Apis With ForwardsCalls Trait And Code Refactoring Tip - Laravel Hidden Feature: https://youtu.be/vzgNm86ezWE Laravel Chunking - You Might Be Doing This Wrong - Problem and Solution: https://youtu.be/aQCHmB4Uh0Q Laravel Tip - Properly Get Data Between Two Dates https://youtu.be/bJkEBTg1NGA Get Data From Multiple Databases In One Project | Laravel Tip https://youtu.be/KJAXLf78QPs === Attribution === Boy waving hand Video by VideoPlasty .com (https://pixabay.com/users/videoplasty-19751245/?utm_source=link-attribution&utm_medium=referral&utm_campaign=video&utm_content=80696) from Pixabay #laravel #php #laraveltip #laratips

About This Video

In this video I walk you through deploying a Laravel project on Cloudways using their new dashboard, and honestly it’s super straightforward. I create a server (I went with the 4GB plan), pick the closest region, and Cloudways provisions everything for Laravel in about 6–7 minutes. After that, I jump into the Application panel, set up deployment via Git, generate an SSH key, add it as a deploy key on GitHub, and run the first deployment right from Cloudways. Once the code is on the server, I SSH in, go into the app folder, run composer, and then configure the database credentials in the .env using the Access Details Cloudways provides. I run migrations and seeders, then I use Debugbar to show you what’s happening with queries and response time. The big takeaway is caching: I switch the cache driver from file to Redis, and then I demonstrate how caching drops repeated requests to zero queries and saves server resources. The nice part is Redis is already enabled by default on Cloudways, and you can manage it (restart/stop) right from the Services panel—plus you’ve also got options like Varnish for even more speed.

Frequently Asked Questions

🎬 More from Laratips