From 08d9b39d7b80e365bd1019c0f414c8319a977685 Mon Sep 17 00:00:00 2001 From: Brian Emilius Date: Wed, 10 Feb 2021 14:52:14 +0100 Subject: [PATCH] some updates? --- .env | 3 ++- bin/www | 10 +++++----- package.json | 2 +- storage/database.sqlite3 | Bin 40960 -> 40960 bytes 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.env b/.env index 8027589..c1481c9 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ NODE_ENV="development" -JWT_SECRET=kj3h45bl2k34jt23498570q9n8098354t7029358tyowie5uthw8475tyq98347ty834irhfoqi34uyt18 \ No newline at end of file +JWT_SECRET=kj3h45bl2k34jt23498570q9n8098354t7029358tyowie5uthw8475tyq98347ty834irhfoqi34uyt18 +PORT=4000 \ No newline at end of file diff --git a/bin/www b/bin/www index bfff6c0..d46c855 100644 --- a/bin/www +++ b/bin/www @@ -4,7 +4,7 @@ var app = require("../app"); var http = require("http"); // Define a port for the server to listen on -var port = process.env.PORT || 4000; +var port = 4000; app.set("port", port); // Create a server instance @@ -17,16 +17,16 @@ server.listen(port); server.on("error", onError); server.on("listening", onListening); -function pipeOrPort(address) { +/* function pipeOrPort(address) { return typeof address == "string" ? `pipe ${address}` : `port ${address.port}`; -} +} */ function onError(error) { if (error.syscall != "listen") { throw error; } - let bind = pipeOrPort(server.address()); + let bind = 4000;//pipeOrPort(server.address()); switch (error.code) { case "EACCES": @@ -41,6 +41,6 @@ function onError(error) { } function onListening() { - let bind = pipeOrPort(server.address()); + let bind = 4000;//pipeOrPort(server.address()); console.log(`Listening on ${bind}`); } diff --git a/package.json b/package.json index 2b1a6ca..71adf3f 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "express-winston": "^4.0.2", "jsonwebtoken": "^8.5.1", "sequelize": "^5.21.3", - "sqlite3": "^4.1.1", + "sqlite3": "^4.2.0", "winston": "^3.2.1" }, "devDependencies": { diff --git a/storage/database.sqlite3 b/storage/database.sqlite3 index 5e99645bbd70c77c8bacb4315b19447a07d59646..1c00b122997b22b161e473b44ada583770e4438d 100644 GIT binary patch delta 380 zcmZoTz|?SnX@WGP-b5K^M!k&*3*|ZaKQOTK_cHMJZst;G<`?8=WL9P@E=?*!OVZ3 qf&V4{eg1bq&SsH@bNq^&%;Jn-zq7C~^D;6EGOIJ9Sjn_#f&c*S^jB*D delta 159 zcmZoTz|?SnX@WGP_Cy(HM(vFW3*|W(7#P_3=P~eq*vzHS%s+90;N*GwK`eZX%*va; z=nFWoF$gd)@UPn}*sz>mD@a`4)6=OaGchkI)uE`QST7~p$iT=z*T7WQ&|JaL(#puh t%EVmH(#(8vqm8H(oTs2|U|?lnzy-7mY}{v{ap!<`$#L<*4O%oo0044NDs%t<