Skip to content

Commit

Permalink
migration script (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-dange authored Mar 13, 2024
1 parent db9d7db commit 5c1bd1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ FROM node:14.15.3-alpine
WORKDIR /app
COPY --from=build /app /app
EXPOSE 3000
CMD ["yarn", "start"]
CMD ["yarn", "release"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"start": "node build/index.js",
"test": "jest --config jest.config.json --runInBand",
"dev": "nodemon -L -e ts -i node_modules -i .git -V index.ts",
"release": "ts-node ./node_modules/typeorm/cli.js migration:run && node build/index.js",
"lint": "eslint ./ --ext .ts",
"lint:fix": "eslint ./ --ext .ts --fix",
"db:migrate:create": "ts-node ./node_modules/typeorm/cli.js migration:create -n",
Expand Down

0 comments on commit 5c1bd1b

Please sign in to comment.