Fix Permission denied (#1893)

* Revert "default user for workspace is laradock, so that owner of log file when running php artisan command doesn't change (#1875)"

This reverts commit 156d124db0.

* update document to inform user should add --user=laradock when exec into workspace, update sync.sh bash to exec into workspace with user laradock
This commit is contained in:
Lan Phan
2018-11-27 15:57:36 +07:00
committed by Shao Yu-Lung (Allen)
parent 22032974c9
commit fa7d3c239c
3 changed files with 5 additions and 5 deletions

View File

@ -508,7 +508,7 @@ docker-compose ps
docker-compose exec workspace bash
```
Add `--user=laradock` (example `docker-compose exec --user=laradock workspace bash`) to have files created as your host's user.
Note: Should add `--user=laradock` (example `docker-compose exec --user=laradock workspace bash`) to have files created as your host's user to prevent issue owner of log file will be changed to root then laravel website cannot write on log file if using rotated log and new log file not existed
4 - Run anything you want :)