Skip to content

Commit fe02ebd

Browse files
committed
Update workflow to account for database changes
1 parent 6f2b8fb commit fe02ebd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
eval $(ssh-agent)
3030
printf '%s\n' 'Host *.eait.uq.edu.au' ' StrictHostKeyChecking no' 'Host *.zones.eait.uq.edu.au' ' ProxyJump ${{ secrets.USER }}@moss.labs.eait.uq.edu.au' > "$SSH_PATH/config"
3131
ssh-add "$SSH_PATH/deploy_key"
32-
ssh -i "$SSH_PATH/deploy_key" ${{ secrets.USER }}@${{ secrets.HOST }} "cd /var/www/nodejs/tutor-timetable-v2 && git pull && yarn && yarn build && echo "${{ secrets.PW }}" | sudo -S systemctl restart nodejs && history -c"
32+
ssh -i "$SSH_PATH/deploy_key" ${{ secrets.USER }}@${{ secrets.HOST }} "cd /var/www/nodejs/tutor-timetable-v2 && git reset HEAD --hard && git checkout main && git pull && yarn && yarn migrate && yarn build && echo "${{ secrets.PW }}" | sudo -S systemctl restart nodejs && history -c"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"eslint-check": "eslint --ext .tsx,ts,jsx,js src/ --max-warnings=0",
5656
"generate-graphql": "graphql-codegen",
5757
"generate-migration": "ts-node ./node_modules/typeorm/cli.js migration:generate -n Migration",
58-
"run-migration": "ts-node ./node_modules/typeorm/cli.js migration:run"
58+
"migrate": "ts-node ./node_modules/typeorm/cli.js migration:run"
5959
},
6060
"eslintConfig": {
6161
"extends": [

0 commit comments

Comments
 (0)