Merge branch 'workspace-user' of github.com:computerfr33k/laradock into workspace-user

This commit is contained in:
Eric Pfeiffer 2016-07-27 02:56:59 -05:00
commit e0c18374df

View File

@ -227,6 +227,8 @@ You can select your own combination of container form this list:
docker exec -it {Workspace-Container-Name} bash docker exec -it {Workspace-Container-Name} bash
``` ```
Replace `{Workspace-Container-Name}` with your Workspace container name. Replace `{Workspace-Container-Name}` with your Workspace container name.
<br />
Add `--user=laradock` to have files created as your host's user. (don't forget to change the PUID (User id) and PGID (group id) variables in docker-compose.yml).
<br> <br>
To find the containers names type `docker-compose ps`. To find the containers names type `docker-compose ps`.
@ -657,7 +659,7 @@ More details about this [here](https://github.com/jenssegers/laravel-mongodb#ins
7 - Test it: 7 - Test it:
- First let your Models extend from the Mongo Eloquent Model. Check the [documentation](https://github.com/jenssegers/laravel-mongodb#eloquent). - First let your Models extend from the Mongo Eloquent Model. Check the [documentation](https://github.com/jenssegers/laravel-mongodb#eloquent).
- Enter the Workspace Container `docker exec -it laradock_workspace_1 bash`. - Enter the Workspace Container `docker exec -it --user=laradock laradock_workspace_1 bash`.
- Migrate the Database `php artisan migrate`. - Migrate the Database `php artisan migrate`.