Level 3
Solved by creating the directory myself. It is under .gitignore, so it feels a bit weird that it has to be created in the remote server. Would be better if it were created automatically during deployment.
On a new VPS I pushed a laravel app. npm run production was succesful.
When I try to use the appplcation and upload an image, I get a 500 | server error
The laravel.log says:
production.ERROR: Can't write image data to path (/var/www/laravel/storage/app/pictures/1623152025MigYx.png) {"exception":"[object] (Intervention\Im$
[stacktrace]
When I check my laravel directory on the server, I notice that no /var/www/laravel/storage/app/pictures directory exists.
I only see a link
lrwxrwxrwx 1 root root storage -> /var/www/laravel/storage/app/public
but the directory itself does not exist.
Is it supposed to be generated by Laravel? ( sorry, I am a nooby;)
Solved by creating the directory myself. It is under .gitignore, so it feels a bit weird that it has to be created in the remote server. Would be better if it were created automatically during deployment.
Please or to participate in this conversation.