From 253fcf8496bad239d6acc9edc68debb4d087fa55 Mon Sep 17 00:00:00 2001 From: jcwimer Date: Mon, 18 Jan 2016 21:32:54 +0000 Subject: [PATCH] Need to remove container after killing it --- rails-prod.sh | 1 + rails-worker-prod.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/rails-prod.sh b/rails-prod.sh index 9d916bd..503b4db 100755 --- a/rails-prod.sh +++ b/rails-prod.sh @@ -7,4 +7,5 @@ fi docker build -t $1 -f rails-prod-Dockerfile . docker kill $1 +docker rm $1 docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -p 80:80 -p 443:443 $1 diff --git a/rails-worker-prod.sh b/rails-worker-prod.sh index b3aa0f0..7a71c13 100755 --- a/rails-worker-prod.sh +++ b/rails-worker-prod.sh @@ -7,4 +7,5 @@ fi docker build -t $1 -f rails-prod-Dockerfile . docker kill $1 +docker rm $1 docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE $1 bundle exec rake jobs:work RAILS_ENV=production \ No newline at end of file