Browse Source

automate database setup and upgrade

pull/1163/head
Fabrice Marchal 3 years ago
parent
commit
352f0ae6f1
  1. 2
      Dockerfile
  2. 2
      package.json

2
Dockerfile

@ -49,4 +49,4 @@ FROM node:16-alpine
COPY --from=builder /ghostfolio/dist/apps /ghostfolio/apps
WORKDIR /ghostfolio/apps/api
EXPOSE 3333
CMD [ "node", "main" ]
CMD [ "yarn", "start:prod" ]

2
package.json

@ -42,7 +42,7 @@
"replace-placeholders-in-build": "node ./replace.build.js",
"start": "node dist/apps/api/main",
"start:client": "ng serve client --configuration=development-en --hmr -o",
"start:prod": "node apps/api/main",
"start:prod": "yarn database:migrate && yarn database:seed && node main",
"start:server": "nx serve api --watch",
"start:storybook": "nx run ui:storybook",
"test": "nx test",

Loading…
Cancel
Save