Deploy Laravel applications fast and cheap
Ғылым және технология
In this 9 minute video, I'll show you five different cheap and fast methods for deploying Laravel applications. These range from basic shared hosting and VMs up to serverless platforms like Lambda and Vapor. Most have a free tier or start out at $5 per month or less!
Note: I have not been paid or asked to promote any of these services, these are simply ways I've personally deployed Laravel applications with and genuinely enjoy using.
Interested in learning how to build real-world practical apps with Laravel and PHP? Preorder my latest course at selfmadesaas.com for 25% off until launch!
- 0:00 Intro
- 0:20 Shared Hosting
- 2:59 DigitalOcean VMs
- 3:58 AWS Lambda and Bref
- 5:33 Laravel Vapor
- 7:16 Fly.io
- 8:34 Wrapping Up
Send me new video ideas and vote on what's coming next: suggest.gg/aschmelyun
Follow me on Twitter! / aschmelyun
Join my newsletter, where I send out new information about twice each month in the PHP, JavaScript, and Docker realms: aschmelyun.substack.com
Пікірлер: 32
It's so awesome that you included the OG of all deployments with cPanel shared hosting!
@aschmelyun
Жыл бұрын
Of course, had to give a shout out to what started my entire career lol
Thank you, there are so few videos about deployment out there. This really helps.
Thank you sir for including options
Great video. Thank you Andrew.
Great video. Thank you.
Very informative video. One question, how much does adding React with inertia to the mix changes things?
Thanks for such a great video. I would like to add one free option (good for prototyping or MVPs) Render. The only downside with Render is that you need to deploy it as a docker container but they do have a Laravel template which needs few modifications.
@aschmelyun
Жыл бұрын
Oooh, I've never heard of Render. I'll have to check it out!
Currently I'm using Digital Ocean droplets and a server management and devops service called Ploi. Not the cheapest option since you end up paying for two things, but I have found it to be convenient especially for Laravel/Statamic, and since I'm not the most knowledgeable when it comes to configuring and managing servers 😅
@aschmelyun
Жыл бұрын
I've seen a bunch of people mention Ploi after this video came out, I'll definitely have to give it a shot!
Which are you recommend. Pick one
Thanks for this video it is very comprehensive.
@aschmelyun
2 ай бұрын
I'm glad you liked it!
And the link for cpanel instructions is missing
Sir, I have used the laravel vapor method. But after successful deployment, there is '500 | SERVER ERROR' in the link.
@rubelrana304
Ай бұрын
did you solve it? Maybe, you should work on little in env file
Nice content. Thank you Andrew. But I wonder why you didn't include Forge. Is there any particular reason? Wondering since it has been one of the first SasS for deploying Laravel and it come from Laravel team itself 😃 I have been using it for over 7 years now and really happy with it
@aschmelyun
Жыл бұрын
Because I put in Vapor and was already using DigitalOcean I just decided to leave out Forge. But I also love the product as well, and use it myself!
Can you add course how to configure CI/CD pipelines Gitlab / Azure with docker (Vue, Laravel and Traefik)?
@aschmelyun
10 ай бұрын
Sure! Is there anything in particular you'd want to learn?
@Dommmin
10 ай бұрын
@@aschmelyun I already know how to set up Dockerfile and docker-compose but don't know how to integrate it with Gitlab and always run tests and deploy to public server.
@aschmelyun
10 ай бұрын
@@Dommmin Ahh, okay. If you haven't purchased it already, I have my course on laraveldocker.com that is going to have a massive update soon that'll cover CI/CD stuff. I'm also planning a couple videos in the next few months to cover some of those topics more in depth too!
@Dommmin
10 ай бұрын
@@aschmelyun thanks! I didn't know about it.
I personally use Laravel Forge.
@aschmelyun
Жыл бұрын
Laravel Forge is definitely one of the best options.
I'm fond of cloud ways. It will spoil you with their deploy feature.
I don't understand why in the first method, why won't you just place all of the code in the public_html folder itself!
@abdelwahabs.301
Жыл бұрын
For security, you don't want to make your env file and other sensitive data available for every one. If you put all in public_html you expose all those data to public...
@adisonmasih
Жыл бұрын
@@abdelwahabs.301 well then i'll just modify the permissions of the .env file wouldn't i?
@abdelwahabs.301
Жыл бұрын
@@adisonmasih try it and let us know ! The problem is : public_html is accessible for everyone so they can list your files. So you need to put only public folders/files at this level and avoid all the headache. It is a best practice. Also, i think that shared hosting is not the best solution for deploying apps, so put some extra money and effort and live in peace. (Exp: digital ocean start with 5$ and you're good to go with full control on your server...)
@sarmadsaqlain740
Жыл бұрын
Hi Andrew, many of th times I run into problem of lower base PHP of server vs higher required by my app in shared hosting so I won't be able to run any artisan command there. What can be a solution to this in the shared hosting?