1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Moved files out of the root of the project to bin and deploy where they belong

This commit is contained in:
2018-01-09 07:58:37 -05:00
parent d88000f06a
commit a36a083826
17 changed files with 55 additions and 53 deletions

View File

@@ -1,8 +1,11 @@
gpg prod.env.gpg
cd ..
bash rails-prod.sh wrestlingdev
cd deploy
docker-compose -f docker-compose-prod-full-stack.yml up -d
#!/bin/bash
project_dir="$(dirname $( dirname $(readlink -f ${BASH_SOURCE[0]})))"
gpg --output ${project_dir}/deploy/prod.env --decrypt ${project_dir}/deploy/prod.env.gpg
docker build -t wrestlingdev-prod -f ${project_dir}/deploy/rails-prod-Dockerfile ${project_dir}
docker-compose -f ${project_dir}/deploy/docker-compose-prod-full-stack.yml up -d
echo Make sure your local mysql database has a db for wrestlingdev called wrestlingtourney
echo "mysqldump -u guy -ppassword -h host database_name > database.sql"
echo "mysql -u guy -ppassword -h host database_name < database.sql"
rm ${project_dir}/deploy/prod.env