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

Added some extra automation for dev container and fixed deploy test. Deploy test needs devise and rails secrets since it runs in prod

This commit is contained in:
2019-11-26 15:03:01 -05:00
parent 515ea6bb8d
commit 2f4ea5e42f
4 changed files with 16 additions and 2 deletions

View File

@@ -5,4 +5,8 @@ project_dir="$(dirname $( dirname $(readlink -f ${BASH_SOURCE[0]})))"
docker-compose -f ${project_dir}/deploy/docker-compose-test.yml kill
docker-compose -f ${project_dir}/deploy/docker-compose-test.yml build
docker-compose -f ${project_dir}/deploy/docker-compose-test.yml up -d
echo Make sure your local mysql database has a wrestlingtourney db
# echo Make sure your local mysql database has a wrestlingtourney db
docker exec -it deploy_app_1 rake db:create
docker exec -it deploy_app_1 rake db:migrate
echo To seed data run:
echo docker exec -it deploy_app_1 rake db:seed