Skip to content

Commit 80c48c8

Browse files
committed
try postinstall
1 parent c9060c5 commit 80c48c8

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ WORKDIR /app
1515
COPY . .
1616
RUN npm install pnpm -g
1717
RUN pnpm install
18-
# RUN pnpm run build
1918
RUN chmod +x appStartUp.sh
20-
CMD ./appStartUp.sh
19+
CMD ./appStartUp.sh

appStartUp.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ export DATABASE_URL=$(echo -e ${DATABASE_URL})
66
echo "Database - running migrations."
77
if $RESET_DB; then
88
echo "Resetting DB"
9-
npx prisma -v
109
npx prisma migrate reset --force
1110
else
1211
echo "Running migrations"
13-
npx prisma -v
1412
npx prisma migrate deploy
1513
fi
1614

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"test:watch": "jest --watch",
1818
"test:cov": "jest --coverage",
1919
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
20-
"test:e2e": "jest --config ./test/jest-e2e.json"
20+
"test:e2e": "jest --config ./test/jest-e2e.json",
21+
"postinstall": "npx prisma generate"
2122
},
2223
"dependencies": {
2324
"@nestjs/common": "^11.0.1",

0 commit comments

Comments
 (0)