#!/bin/bash -e

if [ $# != 1 ]; then
  echo "Please enter docker image name for the rails development environment"
  exit 1
fi

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

#!/bin/bash -e

if [ $# != 1 ]; then
  echo "Please enter docker image name for the rails development environment"
  exit 1
fi

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 -v /srv/docker/apache2/logs:/var/log/apache2 -p 80:80 -p 443:443 $1

Set up logging for apache
Set up logging for apache
