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...
For further actions, you may consider blocking this person and/or reporting abuse
You should not
chmod 777
'ing the.env
file. Giving write permissions to anyone is a security issue.Thanks for the reply! What would be the correct approach then?
I'd go with
chmod 644
andchown $USER
to fix the permissions issue.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.
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.