mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-24 17:04:43 +00:00
Need to bring services down before bringing them back up on deploy test
This commit is contained in:
@@ -25,9 +25,11 @@ docker-compose -f ${project_dir}/deploy/docker-compose-test.yml run --rm app bin
|
||||
docker-compose -f ${project_dir}/deploy/docker-compose-test.yml run --rm app bin/rails db:migrate:queue
|
||||
docker-compose -f ${project_dir}/deploy/docker-compose-test.yml run --rm app bin/rails db:migrate:cable
|
||||
|
||||
# Start all services (will start app and others, db is already running)
|
||||
echo "Stopping all services..."
|
||||
docker-compose -f ${project_dir}/deploy/docker-compose-test.yml down
|
||||
|
||||
echo "Starting application services..."
|
||||
docker-compose -f ${project_dir}/deploy/docker-compose-test.yml up -d
|
||||
docker-compose -f ${project_dir}/deploy/docker-compose-test.yml up --force-recreate --remove-orphans -d
|
||||
|
||||
# DISABLE_DATABASE_ENVIRONMENT_CHECK=1 is needed because this is "destructive" action on production
|
||||
echo Resetting the db with seed data
|
||||
|
||||
Reference in New Issue
Block a user