Compare commits

...

1 Commits

Author SHA1 Message Date
a47cc3cd16 change start stuff 2023-01-27 08:09:50 +01:00
2 changed files with 5 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ FROM base as development
RUN npm install --quiet --unsafe-perm --no-progress --no-audit --include=dev
CMD npm run run:dev
CMD npm run dev
# ################################################################
# ### backend build image ###
@@ -59,4 +59,4 @@ COPY --from=frontendbuild --chown=node:node /opt/frontend/dist/ /opt/frontend/di
RUN npm install --quiet --unsafe-perm --no-progress --no-audit --omit=dev
CMD npm run run:prod
CMD node --es-module-specifier-resolution=node dist/app.js

View File

@@ -6,9 +6,9 @@
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prerun:dev": "npm install && rimraf dist/*",
"run:prod": "node --inspect=0.0.0.0:9229 --es-module-specifier-resolution=node dist/app.js",
"run:dev": "tsc-watch --onSuccess \"npm run run:prod\" --onFailure \"echo WHOOPS! Server compilation failed\""
"predev": "npm install && rimraf dist/*",
"start": "node --inspect=0.0.0.0:9229 --es-module-specifier-resolution=node dist/app.js",
"dev": "tsc-watch --onSuccess \"npm run start\" --onFailure \"echo WHOOPS! Server compilation failed\""
},
"keywords": [],
"author": "Fionn Sperath",