From a47cc3cd16ac81a2a888c66d9df9b341d84e1d76 Mon Sep 17 00:00:00 2001 From: Fionn Date: Fri, 27 Jan 2023 08:09:50 +0100 Subject: [PATCH] change start stuff --- Dockerfile | 4 ++-- backend/package.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index fda88c7..3020624 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file +CMD node --es-module-specifier-resolution=node dist/app.js diff --git a/backend/package.json b/backend/package.json index 88eef40..0f5b1bb 100644 --- a/backend/package.json +++ b/backend/package.json @@ -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",