While I work locally, everything works fine. But when I deploy on Google Cloud I have this error
The stream or file "/app/storage/logs/laravel.log" could not be opened: failed to open stream:Permission denied
I have tried to run this from my terminal. I am using window PC and Vscode
chmod -R 775 storage
chmod -R 775 bootstrap/cache
When I run this, it returns
chmod is not recognized as internal or external commands, operable program or batch file.
I also tried this method
"post-install-cmd": [
"chmod -R 775 storage",
"chmod -R 775 bootstrap/cache",
"php artisan optimize:clear"
]
I don't know how to solve this. I need help