Skip to content

Commit

Permalink
confing server
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrobaina committed Dec 26, 2023
1 parent 627f4fe commit 52503da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM node:18
FROM node:18 as build-stage

WORKDIR /usr/src/app

Expand Down Expand Up @@ -34,4 +34,4 @@ COPY --from=build-stage /usr/src/app/dist ./dist
EXPOSE 3011

# Command to run the app
CMD [ "node", "dist/index.js" ]
CMD ["sh", "-c", "npx prisma migrate deploy && node dist/index.js"]
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "tsc",
"start": "node dist/index.js",
"dev": "tsc-watch --onSuccess \"node dist/index.js\" ",
"prisma:migrate": "npx prisma migrate dev --preview-feature"
"prisma:migrate": "npx prisma migrate dev --preview-feature",
"migrate": "prisma migrate deploy"
},
"keywords": [],
"author": "alex-robaina",
Expand Down Expand Up @@ -59,7 +60,7 @@
"eslint-plugin-prettier": "^3.1.4",
"prettier": "^2.1.2",
"tsc-watch": "^4.2.9",
"typescript": "^4.0.5"
"typescript": "^5.3.3"
},
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3070,10 +3070,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==

typescript@^4.0.5:
version "4.9.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
typescript@^5.3.3:
version "5.3.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37"
integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==

unique-string@^1.0.0:
version "1.0.0"
Expand Down

0 comments on commit 52503da

Please sign in to comment.