Skip to content

Commit

Permalink
Merge pull request #49 from City-of-Turku/feature/update-scripts
Browse files Browse the repository at this point in the history
Feature/update scripts
  • Loading branch information
juuso-j committed Apr 11, 2024
2 parents a5726eb + fadf9ed commit 0883a64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ docker exec -i mpbackend_postgres_1 /usr/bin/pg_dump -U mobilityprofile -F t mob
echo "Backup finished."

: 'To restore:
To enter psql:
docker exec -it mpbackend_postgres_1 psql -U mobilityprofile mobilityprofile
To inspect the container:
docker inspect mpbackend_postgres_1
Expand Down
3 changes: 2 additions & 1 deletion scripts/update_and_start_prod_containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ docker system prune -a -f
docker volume rm mpbackend_static
docker volume rm mpbackend_mpbackend

docker-compose -f ../docker-compose.yml -f ../docker-compose.prod.yml up
docker-compose -f ../docker-compose.yml -f ../docker-compose.prod.yml up --build
docker-compose -f ../docker-compose.yml -f ../docker-compose.prod.yml start

0 comments on commit 0883a64

Please sign in to comment.