Deploy Laravel App To Production & Set Up Staging Environment
HTML-код
- Опубликовано: 3 июл 2024
- 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.
Thanks again, Sensei! You are an amazing tutor - please keep on doing this for a while!
Thank you, will do 💙
After the PHP 8 series, a Laravel series would be awesome
😏
we are waiting!!!
+1 Go for Laravel 10 🔥
Gio is awesome. Been waiting for this for so long. I hope he makes it now that Laravel 10 is out. 😀
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
💪😎
love it, thank you so much
You're welcome 🙌
It would be amazing to listen to Laravel from a master like you, and i hope it will be comprehensive tutorial such PHP8 .
Thank you. If I decide to make Laravel from scratch tutorial it will definitely be in the similar style as my PHP series
Great content!
Thank you 🙏
very nice!! Please keep improving the Container on that php 8 series, I'm learning a lot!!
Thank you. Not sure which container you mean, we've moved on to using PHP-DI in recent lessons there.
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
Thank you 🙌
Nice content ❤🎉
Thank you 🙌
Thanks for this job. Can you make a tutorial for this deployment automation ? Thk
Thank you for the suggestion 💙
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?
Thank you. If I find some time I'll make a video on it 👍
Wow nice , this start series about laravel?
Thanks. No, this is just a stand alone Laravel video.
👍🏻👍🏻👍🏻
👍👍
Amazing, please teach us how to send data from other server to other server.
Thank you. Can you elaborate on that? Not sure I understand
💯👍👍👍
💙💙
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?
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
A W E S O M E !
Next, deploy Laravel API to GCP, please!
Thank you 🙌
What's GCP pls?
@@Zubbee it's Google Cloud Platform, bro...
@@TrikNgonlen Oh I see. Thanks alot
awesomeeeeee
Thanks 🙏
How would we use apache or nginx instead of the built-in php web server with the laravel app?
You could customize docker-compose & use fpm with nginx
@@ProgramWithGio, thanks! Could you suggest a sample docker-compose config for that customization?
I think PLOi is must better option to setup the LARAVEL server.
I haven't used PLOI before so not sure but I'll check it out. Thanks
I followed the same process. But it shows 500
SERVER ERROR
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.
Also make sure to run npm run build
tor tar kata purely
Not sure what this means