Answer the question
In order to leave comments, you need to log in
How to fix permission denied error when working with docker + mutagen?
Hello
, on a laptop (macos), the project code (pure laravel) lies
next to the project code
- docker-compose.yml
- mutagen.yml
The work is built like this
1) The mutagen is configured to synchronize the folder with the project and vps
docker (compose) is installed on the vps itself
2) I go to the project folder and run mutagen, the files immediately appear on the vps and these files have the user that I connect to the vps (id 1000)
here is an example the first line of this is my user, the second is a random project file
uid=1000(pankov) gid=1000(pankov) groups=1000(pankov),27(sudo),998(docker)
-rw-rw-r-- 1 pankov pankov 569 Feb 20 11:38 server.php
The stream or file "/application/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
Answer the question
In order to leave comments, you need to log in
sudo find
recipe . -type f -exec chmod 644 {} \;
sudo find . -type d -exec chmod 755 {} \;
error
The stream or file "/application/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
chmod -R 775 storage
chmod -R 775 bootstrap/cache
everything works as it should
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question