Skip to content

Commit

Permalink
test sites
Browse files Browse the repository at this point in the history
  • Loading branch information
sakthi-aot committed May 7, 2024
1 parent 1a423c0 commit b0a61c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd-openshift-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- 'dev'
- 'feat/task-228'
- 'srs-338' #test


paths:
- 'backend/**'
Expand Down
9 changes: 5 additions & 4 deletions backend/sites/initDB.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ psql "user=$POSTGRES_ADMIN_USERNAME password=$POSTGRES_ADMIN_PASSWORD host=$POST
echo "init db complete"


# Change ownership of .npm cache folder
sudo chown -R 1015500000:0 "/.npm"
# run type orm migrations
npm run typeorm:run-migrations
# Ensure ownership of .npm folder
chown -R node:node /home/node/.npm

# Run TypeORM migrations with npm
su -c "npm run typeorm:run-migrations" -s /bin/sh node
echo "migrations completed"

exit 0

0 comments on commit b0a61c1

Please sign in to comment.