Blog

How to deploy a Laravel 5.6 project on a fresh Ubuntu 16.04 VPS/Server (DigitalOcean or similar hosts)

I’ve been experimenting with Server setup and Deployment options for Laravel 5.6. If you’re willing to pay $12-19 per month, you can use ready-made solution by Forge or Moss (I liked moss better).

However, If you want total control over your site and/or not willing to spend that $12-19 per month, follow along. Actually you can setup a host suitable for Laravel just by copy-pasting some commands. After the environment is ready, you can just git-clone/pull your project and run some artisan command to deploy your app. There’s no script that you need to run, just a bunch of commands and a template server config file (for nginx). That template file can also be replicated for hosting multiple sites (again using terminal commands). Since there’s no large scripts, you can make your tweaks easily if you want.

Continue reading “How to deploy a Laravel 5.6 project on a fresh Ubuntu 16.04 VPS/Server (DigitalOcean or similar hosts)”