mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-02 21:24:25 +00:00
Trying to kill container without ansible failing when zero containers are running
This commit is contained in:
@@ -6,8 +6,8 @@ if [ $# != 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker kill $1
|
||||
docker rm $1
|
||||
docker build -t $1 -f rails-prod-Dockerfile .
|
||||
|
||||
docker kill $(docker ps -q)
|
||||
|
||||
docker run -h $HOSTNAME --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -v /srv/docker/apache2/logs:/var/log/apache2 -v /etc/localtime:/etc/localtime -p 80:80 -p 443:443 $1
|
||||
|
||||
@@ -6,8 +6,8 @@ if [ $# != 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker kill $1
|
||||
docker rm $1
|
||||
docker build -t $1 -f rails-prod-Dockerfile .
|
||||
|
||||
docker kill $(docker ps -q)
|
||||
|
||||
docker run -h $HOSTNAME --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -v /etc/localtime:/etc/localtime $1 bundle exec rake jobs:work RAILS_ENV=production
|
||||
Reference in New Issue
Block a user