Best way to easily host simple Laravel applications
Hi,
Not sure if discussions like that are OK here, didn't find anything against it.
I need a service to easily deploy simple Laravel+Vue applications. I've looked into some Cloud-based options, but never sure what's the best one - not specifically, but at least as pointers on what to look for.
In my job, we use AWS + Forge mostly, but AWS and all its direct competitors seem like overkill for personal projects. I am probably going to get Forge anyways, but not sure what to pair it with and what is enough, I've used a locally based cloud service before, but it was running out of RAM even on composer install or when trying to build with NPM.
@ourbg I personally use Heroku. I don’t have to touch or configure a single server, which is perfect for my side projects where I just want to write code instead of use my limited free time messing about with infrastructure.
You can have a production-ready app running for $7 a month on a hobby dyno and free tier PostgreSQL and Redis add-ons. Deploying is simply a git push and it’ll automatically run composer install on deployment for you. You can also add the Node buildpack to install NPM dependencies and run rpm run prod on deployment too. You can also have it run php artisan migrate in a release phase task too.
If you live in Europe I can suggest using Hetzner. They have extremly cheap servers that works perfectly with forge/ploi. Before them, I used DigitalOcean
@Sinnbeck Yes, I'm in Europe and had Hetzner as my first choice, but decided to probe for other ideas, since wasn't sure which of their tiers to get - was thinking about the CX21 cloud for 5.88 EUR/month.
@OurBG I actually have had great success with running hobby projects on as low as cx11, but the price difference to cx21 is so small that I get why you are thinking of that instead :)
@Sinnbeck I created a Hetzner instance and a Ploi account. However, ploi wants to create the server itself - I can't show it an already provisioned server in Hetzner. Is there any way I can point it there or is "Custom provider" the way to go?
What I did was create a server with ploi, set up github integration, copy user files and database over. Checked the site worked using the test url. Then I put both in maintenance mode and copied over files and database again and then changed dns. I then quickly enabled certificate with ploi. I then turned off maintenance mode on the new site.
Once I was certain it was running I closed the old one.
My move was from digital ocean to hetzner, but hetzner to hetzner wold be the same