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
This commit is contained in:
Miroslav Suchý 2023-09-17 08:46:52 +02:00
parent d2252d4507
commit 2bb5f30c48
2 changed files with 3 additions and 3 deletions

View File

@ -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 <http://localhost:3000> in your browser.

View File

@ -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",