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.

Комментарии • 52

  • @CyberSpaceFilms
    @CyberSpaceFilms Год назад +1

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

  • @LlegoManuel
    @LlegoManuel Год назад +18

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

    • @ProgramWithGio
      @ProgramWithGio  Год назад +4

      😏

    • @mlsandreas
      @mlsandreas Год назад +3

      we are waiting!!!

    • @owiearyaguna2395
      @owiearyaguna2395 Год назад +1

      +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. 😀

  • @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

  • @WhiteSiroi
    @WhiteSiroi Год назад

    love it, thank you so much

  • @alalyrealestate1136
    @alalyrealestate1136 Год назад +2

    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  Год назад +5

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

  • @castordj
    @castordj Год назад

    Great content!

  • @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.

  • @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

  • @oloja__
    @oloja__ Год назад

    Nice content ❤🎉

  • @yvesmichaeljuniormousouba7658
    @yvesmichaeljuniormousouba7658 Год назад

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

  • @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 👍

  • @phpisdead
    @phpisdead Год назад +1

    Wow nice , this start series about laravel?

    • @ProgramWithGio
      @ProgramWithGio  Год назад

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

  • @abdullahalfayad
    @abdullahalfayad Год назад

    👍🏻👍🏻👍🏻

  • @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

  • @vmvm9758
    @vmvm9758 Год назад

    💯👍👍👍

  • @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  Год назад +1

      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

  • @TrikNgonlen
    @TrikNgonlen Год назад +1

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

    • @ProgramWithGio
      @ProgramWithGio  Год назад

      Thank you 🙌

    • @Zubbee
      @Zubbee Год назад +1

      What's GCP pls?

    • @TrikNgonlen
      @TrikNgonlen Год назад

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

    • @Zubbee
      @Zubbee Год назад

      @@TrikNgonlen Oh I see. Thanks alot

  • @waqaszafar9559
    @waqaszafar9559 Год назад

    awesomeeeeee

  • @sergey5561
    @sergey5561 Месяц назад

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

    • @ProgramWithGio
      @ProgramWithGio  Месяц назад

      You could customize docker-compose & use fpm with nginx

    • @sergey5561
      @sergey5561 Месяц назад

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

  • @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

  • @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

  • @user-rc3vw8cp2m
    @user-rc3vw8cp2m 10 месяцев назад

    tor tar kata purely