Bind the node.js app to the port provided by Heroku via the `$HOST` env var.
References: - https://help.heroku.com/P1AVPANS/why-is-my-node-js-app-crashing-with-an-r10-error - https://github.com/mikecao/umami/pull/135 - https://github.com/vercel/next.js/issues/10338pull/222/head
parent
86c76c98c5
commit
a3029edfb5
|
@ -12,7 +12,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "npm-run-all build-tracker build-lang build-db build-app",
|
"build": "npm-run-all build-tracker build-lang build-db build-app",
|
||||||
"start": "next start",
|
"start": "next start -p ${PORT-3000}",
|
||||||
"build-app": "next build",
|
"build-app": "next build",
|
||||||
"build-tracker": "rollup -c rollup.tracker.config.js",
|
"build-tracker": "rollup -c rollup.tracker.config.js",
|
||||||
"build-db": "npm-run-all copy-db-schema build-db-client",
|
"build-db": "npm-run-all copy-db-schema build-db-client",
|
||||||
|
|
Loading…
Reference in New Issue