DEV Community

Laravel 5.6 on Digital Ocean

John Alcher on May 13, 2018

So I was trying to deploy a project on Digital Ocean (referral link) in which I used the Laravel 5.6 framework to get things started. Now all I wan...
Collapse
 
defman profile image
Sergey Kislyakov

You should not chmod 777'ing the .env file. Giving write permissions to anyone is a security issue.

Collapse
 
alchermd profile image
John Alcher

Thanks for the reply! What would be the correct approach then?

Collapse
 
defman profile image
Sergey Kislyakov

I'd go with chmod 644 and chown $USER to fix the permissions issue.

Collapse
 
azazqadir profile image
Muhammad Azaz Qadir

Manually installing Laravel on DigitalOcean server seems quite a hassle. After setup, you have to manage the server as well. have you tried out managed platforms that provides 1-click Laravel server? I think DigitalOcean is also providing 1-click solution in it Marketplace? If you really want to go with DigitalOcean, try out the Marketplace and see if there is 1-click solution for Laravel.

Collapse
 
martin_52 profile image
Martingray

The blog post is very nice for learning the Laravel deployment on a bare metal cloud server, but managing the Live application server is a 24*7 hassle.

Why not use a simple PAAS-based solution where we can deploy the app in a few clicks without worrying about server management and hosting-related issues. I personally use Managed Laravel Hosting on leading cloud infrastructure provider servers.