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

  • @LlegoManuel
    @LlegoManuel Жыл бұрын

    After the PHP 8 series, a Laravel series would be awesome

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    😏

  • @mlsandreas

    @mlsandreas

    Жыл бұрын

    we are waiting!!!

  • @owiearyaguna2395

    @owiearyaguna2395

    Жыл бұрын

    +1 Go for Laravel 10 🔥

  • @RafaelCeballo

    @RafaelCeballo

    Жыл бұрын

    Gio is awesome. Been waiting for this for so long. I hope he makes it now that Laravel 10 is out. 😀

  • @CyberSpaceFilms
    @CyberSpaceFilms Жыл бұрын

    Thanks again, Sensei! You are an amazing tutor - please keep on doing this for a while!

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    Thank you, will do 💙

  • @Zubbee
    @Zubbee Жыл бұрын

    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

    @ProgramWithGio

    Жыл бұрын

    💪😎

  • @alalyrealestate1136
    @alalyrealestate1136 Жыл бұрын

    It would be amazing to listen to Laravel from a master like you, and i hope it will be comprehensive tutorial such PHP8 .

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    Thank you. If I decide to make Laravel from scratch tutorial it will definitely be in the similar style as my PHP series

  • @WhiteSiroi
    @WhiteSiroi Жыл бұрын

    love it, thank you so much

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    You're welcome 🙌

  • @alissondepadua
    @alissondepadua Жыл бұрын

    very nice!! Please keep improving the Container on that php 8 series, I'm learning a lot!!

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    Thank you. Not sure which container you mean, we've moved on to using PHP-DI in recent lessons there.

  • @castordj
    @castordj Жыл бұрын

    Great content!

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    Thank you 🙏

  • @khantsithuphyo5484
    @khantsithuphyo5484 Жыл бұрын

    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

    @ProgramWithGio

    Жыл бұрын

    Thank you 🙌

  • @holonaut
    @holonaut Жыл бұрын

    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

    @ProgramWithGio

    Жыл бұрын

    Thank you. If I find some time I'll make a video on it 👍

  • @oloja__
    @oloja__ Жыл бұрын

    Nice content ❤🎉

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    Thank you 🙌

  • @eddiechen6389
    @eddiechen6389 Жыл бұрын

    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

    @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

  • @yvesmichaeljuniormousouba7658
    @yvesmichaeljuniormousouba7658 Жыл бұрын

    Thanks for this job. Can you make a tutorial for this deployment automation ? Thk

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    Thank you for the suggestion 💙

  • @phpisdead
    @phpisdead Жыл бұрын

    Wow nice , this start series about laravel?

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    Thanks. No, this is just a stand alone Laravel video.

  • @cubedev4838
    @cubedev4838 Жыл бұрын

    Amazing, please teach us how to send data from other server to other server.

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    Thank you. Can you elaborate on that? Not sure I understand

  • @sergey5561
    @sergey55612 ай бұрын

    How would we use apache or nginx instead of the built-in php web server with the laravel app?

  • @ProgramWithGio

    @ProgramWithGio

    2 ай бұрын

    You could customize docker-compose & use fpm with nginx

  • @sergey5561

    @sergey5561

    2 ай бұрын

    @@ProgramWithGio, thanks! Could you suggest a sample docker-compose config for that customization?

  • @waqaszafar9559
    @waqaszafar9559 Жыл бұрын

    awesomeeeeee

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    Thanks 🙏

  • @TrikNgonlen
    @TrikNgonlen Жыл бұрын

    A W E S O M E ! Next, deploy Laravel API to GCP, please!

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    Thank you 🙌

  • @Zubbee

    @Zubbee

    Жыл бұрын

    What's GCP pls?

  • @TrikNgonlen

    @TrikNgonlen

    Жыл бұрын

    @@Zubbee it's Google Cloud Platform, bro...

  • @Zubbee

    @Zubbee

    Жыл бұрын

    @@TrikNgonlen Oh I see. Thanks alot

  • @vmvm9758
    @vmvm9758 Жыл бұрын

    💯👍👍👍

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    💙💙

  • @abdullahalfayad
    @abdullahalfayad Жыл бұрын

    👍🏻👍🏻👍🏻

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    👍👍

  • @dilankaseniya
    @dilankaseniya Жыл бұрын

    I followed the same process. But it shows 500 SERVER ERROR

  • @ProgramWithGio

    @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

    @ProgramWithGio

    Жыл бұрын

    Also make sure to run npm run build

  • @rajivguptaggs
    @rajivguptaggs Жыл бұрын

    I think PLOi is must better option to setup the LARAVEL server.

  • @ProgramWithGio

    @ProgramWithGio

    Жыл бұрын

    I haven't used PLOI before so not sure but I'll check it out. Thanks

  • @user-rc3vw8cp2m
    @user-rc3vw8cp2m11 ай бұрын

    tor tar kata purely

  • @ProgramWithGio

    @ProgramWithGio

    11 ай бұрын

    Not sure what this means