From ed39fcff824b43c82fc2c828e1e04127f312714f Mon Sep 17 00:00:00 2001 From: Mathieu Brunot Date: Thu, 18 Jun 2020 13:30:09 +0200 Subject: [PATCH 1/2] :sparkles: Start-prod without livereload fix #278 --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 5f83d581..5ba6a010 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "compile": "browserify -d src/index.js -s osrm > bundle.raw.js && uglifyjs bundle.raw.js -c -m --source-map=bundle.js.map -o bundle.js", "build": "npm run replace && npm run compile && cp node_modules/leaflet/dist/leaflet.css css/leaflet.css", "start-index": "budo src/index.js --serve=bundle.js --live -d | bistre", + "start-index-prod": "budo src/index.js --serve=bundle.js -d | bistre", "start": "npm run build && npm run start-index", + "start-prod": "npm run build && npm run start-index-prod", "prepub": "npm run build" }, "repository": { From 93726061730b1d3fb983d3d6ff11d5c44f62470c Mon Sep 17 00:00:00 2001 From: madmath03 Date: Sun, 4 Sep 2022 17:49:24 +0000 Subject: [PATCH 2/2] Update default docker CMD Signed-off-by: madmath03 --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 40308809..cca85cbc 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -22,4 +22,4 @@ WORKDIR /src # Run App EXPOSE 9966 -CMD ["npm", "start"] +CMD ["npm", "run", "start-prod"]