Hello All,
I have a problem when deploying Laravel a web application using Laravel forge with digitalocean ubuntu host. I try to generate fake images using faker package. but there is an error. "mkdir(): Permission denied". My image save path should be "/storage/images/products/cover_img". Can anyone help me to solve this problem? This is my first time using cloud hosting. before I used shared hosting cPanel. In cPanel I can give permission using the file manager. but I don't how to do it with cloud hosting. (testing in the localhost, there are no any errors only happening in cloud host) Thank you very much.
@bugsysha Actually I try to seed some fake product in the subdomain for testing purposes. I think problems in the path can not create without permission. I tried to run this code "sudo chmod 755 -R my path" in web console in digital ocean droplet. Stil could solve. I contacted the forge team about this. they did not give a solution.
Hello, thanks everybody to help me. Finally, I've figured out the issue, I think First I did the total wrong way because I tried to seed when deploying using forge with php artisan migrate:fresh --seed code. Then came that error.
So, I did just deploy with default settings in the forge and I log in to serve using terminal, Then I run the php artisan migrate --seed command and I was successful without any error.