Skip to content

Commit 46f5d28

Browse files
committed
Added dev run command
1 parent 273394d commit 46f5d28

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

bin/dev_command/run

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
3+
dc mode run;
4+
dc service $1;
5+
6+
if [ -n "${DEV_PROJECTDIR}" ]; then
7+
dc opt "-w /data/${DEV_PROJECTDIR}"
8+
fi
9+
10+
shift;
11+
dc cmd "$*";
12+

docs/development-commands.md

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ To control your docker environment.
2828
alias for `dev update && dev build && dev down && dev up`
2929
- `restart [CONTAINER]`
3030
restart all or a specific container
31+
- `run`
32+
run one-off commands in new container
3133
- `setup`
3234
Run setup for defaults
3335
- `start`

0 commit comments

Comments
 (0)