Skip to content

Commit

Permalink
update bin/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiomagalhaes committed Nov 4, 2024
1 parent 1858c37 commit aa1ebd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/dev
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#MAINTAINER Kaio Magalhaes, Inc.

touch .env
docker-compose up -d
docker compose up -d
docker exec -it backstage-api bash
4 changes: 2 additions & 2 deletions bin/pull_prod_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if [ -f ./latest.dump ]; then
rm ./latest.dump
fi

docker-compose up -d
docker compose up -d
docker stop backstage-api
docker stop backstage-sidekiq
heroku pg:backups:capture --app prod-backstage-api
Expand All @@ -11,4 +11,4 @@ docker exec -it backstage-db psql -U postgres -c 'DROP DATABASE IF EXISTS backst
docker exec -it backstage-db psql -U postgres -c "CREATE DATABASE backstage_development"
docker exec -it backstage-db psql -U postgres backstage_development -c "CREATE SCHEMA IF NOT EXISTS heroku_ext AUTHORIZATION postgres"
docker exec -it backstage-db pg_restore --verbose --clean --if-exists --no-acl --no-owner -U postgres -d backstage_development /app/latest.dump
sh bin/dev
sh bin/dev

0 comments on commit aa1ebd5

Please sign in to comment.