Skip to content

Commit f5c80cd

Browse files
pdziewabestlong
authored andcommitted
Added docker-compose run workspace example (laradock#2094)
1 parent 5b07fbb commit f5c80cd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

DOCUMENTATION/content/guides/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ Note that more containers are available, find them in the [docs](http://laradock
6969
docker-compose exec workspace bash
7070
```
7171

72+
## Execute commands
73+
74+
If you want to only execute some command and don't want to enter bash, you can execute `docker-compose run workspace <command>`.
75+
76+
```
77+
docker-compose run workspace php artisan migrate
78+
```
79+
7280
## Install and configure Laravel
7381

7482
Let's install Laravel's dependencies, add the `.env` file, generate the key and give proper permissions to the cache folder.

0 commit comments

Comments
 (0)