change start stuff
This commit is contained in:
@@ -24,7 +24,7 @@ FROM base as development
|
|||||||
|
|
||||||
RUN npm install --quiet --unsafe-perm --no-progress --no-audit --include=dev
|
RUN npm install --quiet --unsafe-perm --no-progress --no-audit --include=dev
|
||||||
|
|
||||||
CMD npm run run:dev
|
CMD npm run dev
|
||||||
|
|
||||||
# ################################################################
|
# ################################################################
|
||||||
# ### backend build image ###
|
# ### 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
|
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
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"prerun:dev": "npm install && rimraf dist/*",
|
"predev": "npm install && rimraf dist/*",
|
||||||
"run:prod": "node --inspect=0.0.0.0:9229 --es-module-specifier-resolution=node dist/app.js",
|
"start": "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\""
|
"dev": "tsc-watch --onSuccess \"npm run start\" --onFailure \"echo WHOOPS! Server compilation failed\""
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Fionn Sperath",
|
"author": "Fionn Sperath",
|
||||||
|
|||||||
Reference in New Issue
Block a user