Skip to content

Commit

Permalink
fix(scripts): update Docker container names to align with the newer v…
Browse files Browse the repository at this point in the history
…ersions
  • Loading branch information
nunogoncalves03 committed Mar 1, 2024
1 parent 81c5c06 commit 11d4839
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ CLIENT_ADDRESS=https://localhost
API_ADDRESS=https://localhost/api

NODE_ENV=development
ENVIRONMENT=dev
2 changes: 1 addition & 1 deletion backend/src/scripts/restoreState.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ execSync("sleep 30", { stdio: "inherit" });

// Restore database
execSync(
`docker exec backend sh -c 'PGPASSWORD=${process.env.DB_PASSWORD} psql -h ${process.env.DB_HOST} -U ${process.env.DB_USER} < ./storage/backup.sql'`,
`docker exec hs-tms_backend sh -c 'PGPASSWORD=${process.env.DB_PASSWORD} psql -h ${process.env.DB_HOST} -U ${process.env.DB_USER} < ./storage/backup.sql'`,
{ stdio: "inherit" },
);
console.log("Restored database from backup.");
Expand Down

0 comments on commit 11d4839

Please sign in to comment.