mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-15 20:46:57 +00:00
Moved files out of the root of the project to bin and deploy where they belong
This commit is contained in:
10
bin/rails-dev-run.sh
Executable file
10
bin/rails-dev-run.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash -e
|
||||
project_dir="$(dirname $( dirname $(readlink -f ${BASH_SOURCE[0]})))"
|
||||
|
||||
if [ $# != 1 ]; then
|
||||
echo "Please enter docker image name for the rails development environment"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker build -t $1 -f ${project_dir}/deploy/rails-dev-Dockerfile ${project_dir}
|
||||
docker run -it -p 3000:3000 -v ${project_dir}:/rails $1 /bin/bash
|
||||
Reference in New Issue
Block a user