1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-31 19:45:45 +00:00

Kill and name container when starting

This commit is contained in:
2016-01-18 13:08:45 +00:00
parent c8b5784847
commit 8b370371af
2 changed files with 4 additions and 4 deletions

View File

@@ -4,6 +4,6 @@ if [ $# != 1 ]; then
echo "Please enter docker image name for the rails development environment"
exit 1
fi
docker kill $1
docker build -t $1 -f rails-prod-Dockerfile .
docker run -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -p 80:80 -p 443:443 $1
docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -p 80:80 -p 443:443 $1

View File

@@ -4,6 +4,6 @@ if [ $# != 1 ]; then
echo "Please enter docker image name for the rails development environment"
exit 1
fi
docker kill $1
docker build -t $1 -f rails-prod-Dockerfile .
docker run -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE $1 bundle exec rake jobs:work RAILS_ENV=production
docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE $1 bundle exec rake jobs:work RAILS_ENV=production