DEV Community

Discussion on: I have created a video series to help you deploy a Laravel application with PHP7 and Nginx

Collapse
 
roelofjanelsinga profile image
Roelof Jan Elsinga • Edited

You might want to fix your front matter at the top of your post. I think you removed --- before title and after cover_image.

I see in video 4 you use "sudo git clone" because your user doesn't have access to the www folder. Don't do this, just fix the permissions of the folder, so your current user can access them as well as www-data.

Then a few minutes later you're using "sudo PHP artisan key:generate". This is not be done either. You should be able to run basic commands as your current user without using sudo.

Collapse
 
ppshobi profile image
Shobi • Edited

Well, You are right, I should have added the user to the www-data group, But we do chown all the files back to www-data so I think it should be fine, sorry :) And thank you for pointing that out