super-graph/demo
2019-06-01 10:53:24 -04:00

12 lines
389 B
Bash
Executable File

#!/bin/bash
if [ "$1" == "setup" ]; then
docker-compose -f rails-app/demo.yml run web rake db:create db:migrate db:seed
elif [ "$1" == "run" ]; then
docker-compose -f rails-app/demo.yml up
elif [ "$1" == "start" ]; then
docker-compose -f rails-app/demo.yml run web rake db:create db:migrate db:seed
docker-compose -f rails-app/demo.yml up
else
echo "./demo [setup|run|start]"
fi