mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-12 16:25:41 +00:00
Created Dockerfile and configs for production
This commit is contained in:
9
rails-prod.sh
Executable file
9
rails-prod.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
if [ $# != 1 ]; then
|
||||
echo "Please enter docker image name for the rails development environment"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker build -t $1 -f rails-prod-Dockerfile .
|
||||
sudo docker run -d --restart=always -p 80:80 -p 443:443 $1
|
||||
Reference in New Issue
Block a user