1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Kill and remove before building container

This commit is contained in:
2016-01-19 02:53:07 +00:00
parent 593ad6093e
commit c9a9362406
2 changed files with 4 additions and 2 deletions

View File

@@ -5,7 +5,8 @@ if [ $# != 1 ]; then
exit 1
fi
docker build -t $1 -f rails-prod-Dockerfile .
docker kill $1
docker rm $1
docker build -t $1 -f rails-prod-Dockerfile .
docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -p 80:80 -p 443:443 $1

View File

@@ -5,7 +5,8 @@ if [ $# != 1 ]; then
exit 1
fi
docker build -t $1 -f rails-prod-Dockerfile .
docker kill $1
docker rm $1
docker build -t $1 -f rails-prod-Dockerfile .
docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE $1 bundle exec rake jobs:work RAILS_ENV=production