mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Added worker script
This commit is contained in:
9
rails-worker-prod.sh
Executable file
9
rails-worker-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 .
|
||||
docker run -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE $1 rake db:work
|
||||
Reference in New Issue
Block a user