From 4954a5cb49450550812141349fcb7f74174cf993 Mon Sep 17 00:00:00 2001 From: dylanverstraete Date: Mon, 30 Jan 2023 17:30:55 +0100 Subject: [PATCH] feat: use different command to start in prod --- Dockerfile | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 34cdd7f..f69608a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,4 +17,4 @@ COPY . . EXPOSE 3000 -CMD [ "yarn", "start" ] \ No newline at end of file +CMD [ "yarn", "start-prod" ] \ No newline at end of file diff --git a/package.json b/package.json index bec4716..2acf48c 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "index.js", "scripts": { "start": "nodemon ./bin/www | pino-pretty", + "start-prod": "node ./bin/www", "debug": "node --nolazy --inspect-brk=9229 ./bin/www", "test": "standard" }, @@ -35,4 +36,4 @@ "pino-pretty": "^5.0.2", "standard": "^16.0.3" } -} +} \ No newline at end of file