diff --git a/.vscode/launch.json b/.vscode/launch.json index fc42af6..4e3e134 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,12 +12,13 @@ "/**" ], "type": "pwa-node", + "runtimeExecutable": "node", "env": { "DBHOST": "vps.k-world.me.uk", "DBUSER": "root", "DBPASS": "Grd555269", "DATABASE": "BBLB_DNS", - "DBPORT": "3306", + "DBPORT": "5405", "TORSSRV": "localhost", "TORSPWD": "KarlMax", } @@ -29,13 +30,14 @@ "skipFiles": [ "/**" ], + "runtimeExecutable": "/home/karl/.nvm/versions/node/v20.19.3/bin/node", "program": "${workspaceFolder}/bin/www", "env": { "DBHOST": "vps.k-world.me.uk", "DBUSER": "root", "DBPASS": "Grd555269", "DATABASE": "BBLB_DNS", - "DBPORT": "3306", + "DBPORT": "5405", "TORSSRV": "localhost", "TORSPWD": "KarlMax", } @@ -44,6 +46,7 @@ "type": "node", "request": "launch", "name": "Checker", + "runtimeExecutable": "/home/karl/.nvm/versions/node/v20.19.3/bin/node", "skipFiles": [ "/**" ], @@ -53,7 +56,7 @@ "DBUSER": "root", "DBPASS": "Grd555269", "DATABASE": "BBLB_DNS", - "DBPORT": "3306", + "DBPORT": "5405", "TORSSRV": "localhost", "TORSPWD": "KarlMax", } diff --git a/bin/www b/bin/www index 6a8b314..db64592 100644 --- a/bin/www +++ b/bin/www @@ -9,6 +9,7 @@ require('dotenv').config() var app = require('../app'); var debug = require('debug')('react-backend:server'); var http = require('http'); +const pjson = require('../package.json'); /** * Get port from environment and store in Express. @@ -89,4 +90,5 @@ function onListening() { ? 'pipe ' + addr : 'port ' + addr.port; debug('Listening on ' + bind); + console.log(`Version: ${pjson.version}`); } diff --git a/package.json b/package.json index 3cf5083..1fb95a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-backend", - "version": "1.0.1", + "version": "1.0.2", "private": true, "scripts": { "start": "node ./bin/www"