Skip to content

Commit

Permalink
Added dev run command
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenBoersma committed Jul 30, 2018
1 parent 273394d commit 46f5d28
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/dev_command/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@


dc mode run;
dc service $1;

if [ -n "${DEV_PROJECTDIR}" ]; then
dc opt "-w /data/${DEV_PROJECTDIR}"
fi

shift;
dc cmd "$*";

2 changes: 2 additions & 0 deletions docs/development-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ To control your docker environment.
alias for `dev update && dev build && dev down && dev up`
- `restart [CONTAINER]`
restart all or a specific container
- `run`
run one-off commands in new container
- `setup`
Run setup for defaults
- `start`
Expand Down

0 comments on commit 46f5d28

Please sign in to comment.