From 2bb5f30c489e6944652cca388e3dcb99737ea61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Sun, 17 Sep 2023 08:46:52 +0200 Subject: [PATCH] fix README for production deployment - do not install dev only modules - prefer ipv4, because on ipv6 network the download get stuck on some modules - move husky to production list because otherwise "npm run start" fails --- README.md | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d0e491c..45ac1ef 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ Install the dependencies as per above, then simply run: ``` git clone https://github.com/badlogic/heissepreise cd heissepreise -npm install -npm run dev +node --dns-result-order=ipv4first /usr/bin/npm install --omit=dev +npm run start ``` Once the app is listening per default on port 3000, open in your browser. diff --git a/package.json b/package.json index 7e479c9..d4a4cd6 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "compression": "^1.7.4", "express": "^4.18.2", "hyphen": "^1.6.6", + "husky": "^8.0.3", "moment": "^2.29.4", "node-html-parser": "^6.1.5", "pdfjs-dist": "^3.7.107", @@ -39,7 +40,6 @@ "concurrently": "^8.1.0", "cross-env": "^7.0.3", "esbuild": "^0.17.19", - "husky": "^8.0.3", "postcss": "^8.4.24", "prettier": "^2.8.8", "pretty-quick": "^3.1.3",