add some extra helper scripts

This commit is contained in:
Sam 2016-12-13 09:24:31 +11:00
parent 97e2a614c8
commit 4faec8af96
2 changed files with 8 additions and 0 deletions

6
bin/docker/migrate Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
CMD="cd /src && RAILS_ENV=development rake db:migrate"
docker exec -it -u discourse:discourse discourse_dev /bin/bash -c "$CMD"
CMD="cd /src && RAILS_ENV=test rake db:migrate"
docker exec -it -u discourse:discourse discourse_dev /bin/bash -c "$CMD"

2
bin/docker/shell_root Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
docker exec -it discourse_dev /bin/bash