aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-11 22:09:48 -0800
committerAdam Soltys <[email protected]>2023-01-12 15:44:13 -0800
commitc3565838644123e77881ff4f8536792f074047b9 (patch)
tree96da43fd19940d2f0836e43a511f0a1fb365044d /index.js
parentded2c69ce89438326523a512b570be6eee4b23f0 (diff)
downloadcoinos-server-c3565838644123e77881ff4f8536792f074047b9.tar.gz
coinos-server-c3565838644123e77881ff4f8536792f074047b9.zip
migrating to redis
Diffstat (limited to 'index.js')
-rw-r--r--index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.js b/index.js
index bec89372..580435e0 100644
--- a/index.js
+++ b/index.js
@@ -18,7 +18,7 @@ import "./routes/requests";
let host = process.env.HOST || "0.0.0.0";
let port = process.env.PORT || 3119;
-app.listen({ host, port }, (e, address) => {
- e && err(e) && process.exit(1);
- l(`CoinOS Server listening on ${address}`);
+
+app.listen({ host, port }, (e, h) => {
+ if (e) return err("Failed to start:", e.message);
});