build: use npm start in master-dbg docker image (#704)

This commit is contained in:
Trim21
2023-12-12 01:27:03 +08:00
committed by GitHub
parent 2098c2e3f1
commit e523a294e7
2 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ EXPOSE 3000
EXPOSE 4200
# Flood server in development mode
ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start:development:server", "--", "--host=0.0.0.0"]
ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start", "--", "--host=0.0.0.0"]
# Then, to start a debugging session of frontend:
# docker exec -it ${container_id} npm --prefix=/usr/src/app/ run start:development:client
@@ -61,4 +61,4 @@ FROM flood as rtorrent-flood
# Copy rTorrent
COPY --from=rtorrent / /
ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start:development:server", "--", "--host=0.0.0.0", "--rtorrent"]
ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start", "--", "--host=0.0.0.0", "--rtorrent"]

View File

@@ -57,7 +57,7 @@
"check-types": "tsc",
"lint": "NODE_ENV=development eslint --max-warnings 0 . --ext .js --ext .jsx --ext .ts --ext .tsx",
"prepack": "rm -rf dist && npm run build",
"start": "node --use_strict dist/index.js",
"start": "node --enable-source-maps --use_strict dist/index.js",
"start:development:client": "node client/scripts/development.js",
"start:development:server": "NODE_ENV=development tsx watch server/bin/start.ts",
"start:test:rtorrent": "node scripts/testsetup.js",