Deploy Laravel App To Production & Set Up Staging Environment
In this video, we learn how to deploy Laravel app to Cloudways & set up staging environment.
Cloudways offers peace of mind and flexibility so you can focus on growing your business instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and a choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr.
Get up to 2 Months of Free Hosting by using code "GIO15" and get a $15 free hosting credit.
Please use the following URL: platform.cloudways.com/signup...
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon: / programwithgio
THANK YOU!
🛠️ TOOLS & SERVICES I USE
Digital Ocean Hosting - Get 200$ credit - m.do.co/c/38b935ad74e5
Domains on Namecheap - namecheap.pxf.io/rnRjdQ
Envato Elements - 1.envato.market/c/2937311/298...
RESOURCES
Source Repo - github.com/ggelashvili/deploy...
Deploy Vanilla PHP To Cloudways Lesson - • How To Deploy Vanilla ...
Cloudways - www.cloudways.com/en/php-host...
TABLE OF CONTENTS
00:00 - Intro
00:41 - Install Laravel Locally
03:08 - Cloudways Promo
04:02 - Launch Server
05:14 - Review App Code
06:23 - Deploy Via Git
12:43 - Set Up Staging Environment
17:59 - Outro
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
Пікірлер: 52
After the PHP 8 series, a Laravel series would be awesome
@ProgramWithGio
Жыл бұрын
😏
@mlsandreas
Жыл бұрын
we are waiting!!!
@owiearyaguna2395
Жыл бұрын
+1 Go for Laravel 10 🔥
@RafaelCeballo
Жыл бұрын
Gio is awesome. Been waiting for this for so long. I hope he makes it now that Laravel 10 is out. 😀
Thanks again, Sensei! You are an amazing tutor - please keep on doing this for a while!
@ProgramWithGio
Жыл бұрын
Thank you, will do 💙
I certainly enjoyed this and I think I'll make it a side project and flex my muscles while we are at the invoice app grind. Thanks alot Gio
@ProgramWithGio
Жыл бұрын
💪😎
It would be amazing to listen to Laravel from a master like you, and i hope it will be comprehensive tutorial such PHP8 .
@ProgramWithGio
Жыл бұрын
Thank you. If I decide to make Laravel from scratch tutorial it will definitely be in the similar style as my PHP series
love it, thank you so much
@ProgramWithGio
Жыл бұрын
You're welcome 🙌
very nice!! Please keep improving the Container on that php 8 series, I'm learning a lot!!
@ProgramWithGio
Жыл бұрын
Thank you. Not sure which container you mean, we've moved on to using PHP-DI in recent lessons there.
Great content!
@ProgramWithGio
Жыл бұрын
Thank you 🙏
Finally you here in Laravel I would like to watch your advance Laravel query and some magic staff Thanks you for too far to learn
@ProgramWithGio
Жыл бұрын
Thank you 🙌
Awesome. I'll probably start using Cloudways for my new project. Can you also show how to run a post_receive script in git, that automatically runs composer install and npm run build after a each push to the respective branch?
@ProgramWithGio
Жыл бұрын
Thank you. If I find some time I'll make a video on it 👍
Nice content ❤🎉
@ProgramWithGio
Жыл бұрын
Thank you 🙌
Thanks that was a good video. Hi, I have a question, I have a next.js front end on one repo and another laravel backend on another repo, how can i deploy them there so that they can communicate with each other? Or can you make a video like that?
@ProgramWithGio
Жыл бұрын
Thank you. You can deploy laravel backend in Cloudways and frontend in netlify for example and use laravel sanctum authentication to connect frontend with backend. I have videos on how to authenticate laravel with nextjs spa, search on my channel and u'll find it
Thanks for this job. Can you make a tutorial for this deployment automation ? Thk
@ProgramWithGio
Жыл бұрын
Thank you for the suggestion 💙
Wow nice , this start series about laravel?
@ProgramWithGio
Жыл бұрын
Thanks. No, this is just a stand alone Laravel video.
Amazing, please teach us how to send data from other server to other server.
@ProgramWithGio
Жыл бұрын
Thank you. Can you elaborate on that? Not sure I understand
How would we use apache or nginx instead of the built-in php web server with the laravel app?
@ProgramWithGio
2 ай бұрын
You could customize docker-compose & use fpm with nginx
@sergey5561
2 ай бұрын
@@ProgramWithGio, thanks! Could you suggest a sample docker-compose config for that customization?
awesomeeeeee
@ProgramWithGio
Жыл бұрын
Thanks 🙏
A W E S O M E ! Next, deploy Laravel API to GCP, please!
@ProgramWithGio
Жыл бұрын
Thank you 🙌
@Zubbee
Жыл бұрын
What's GCP pls?
@TrikNgonlen
Жыл бұрын
@@Zubbee it's Google Cloud Platform, bro...
@Zubbee
Жыл бұрын
@@TrikNgonlen Oh I see. Thanks alot
💯👍👍👍
@ProgramWithGio
Жыл бұрын
💙💙
👍🏻👍🏻👍🏻
@ProgramWithGio
Жыл бұрын
👍👍
I followed the same process. But it shows 500 SERVER ERROR
@ProgramWithGio
Жыл бұрын
Check error log in storage/logs folder when you ssh into your server & app. Make sure you set up the .env file correctly with correct DB credentials.
@ProgramWithGio
Жыл бұрын
Also make sure to run npm run build
I think PLOi is must better option to setup the LARAVEL server.
@ProgramWithGio
Жыл бұрын
I haven't used PLOI before so not sure but I'll check it out. Thanks
tor tar kata purely
@ProgramWithGio
11 ай бұрын
Not sure what this means