From 43e27b45ec2a5d7e6336ac93737e9cb72b504457 Mon Sep 17 00:00:00 2001 From: Nikhil Dange Date: Thu, 15 Feb 2024 13:22:04 -0800 Subject: [PATCH] migration script --- Dockerfile | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 093bb5a30..2f0358565 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/package.json b/package.json index 39b410952..d2cf54825 100644 --- a/package.json +++ b/package.json @@ -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",