Skip to content

Commit

Permalink
Merge pull request #177 from dscdut/setup-cicd
Browse files Browse the repository at this point in the history
ci:  include migration step
  • Loading branch information
High10Hunter authored Mar 13, 2024
2 parents ba63e57 + e23b128 commit b77cbaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ jobs:
runs-on: self-hosted

steps:
- name: run migrations
run: cd backend && npm run knex migrate:latest
- name: Copy .env file
run: cp ~/env/.env backend/.env

- name: run migrations
run: cd backend && npm run knex migrate:latest

- name: Restart api server
run: cd backend && pm2 restart api --update-env

Expand Down

0 comments on commit b77cbaf

Please sign in to comment.