print the version
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 23s

This commit is contained in:
Karl 2025-07-05 10:41:55 +01:00
parent 605541d2d0
commit 0c9db58903
3 changed files with 9 additions and 4 deletions

9
.vscode/launch.json vendored
View File

@ -12,12 +12,13 @@
"<node_internals>/**" "<node_internals>/**"
], ],
"type": "pwa-node", "type": "pwa-node",
"runtimeExecutable": "node",
"env": { "env": {
"DBHOST": "vps.k-world.me.uk", "DBHOST": "vps.k-world.me.uk",
"DBUSER": "root", "DBUSER": "root",
"DBPASS": "Grd555269", "DBPASS": "Grd555269",
"DATABASE": "BBLB_DNS", "DATABASE": "BBLB_DNS",
"DBPORT": "3306", "DBPORT": "5405",
"TORSSRV": "localhost", "TORSSRV": "localhost",
"TORSPWD": "KarlMax", "TORSPWD": "KarlMax",
} }
@ -29,13 +30,14 @@
"skipFiles": [ "skipFiles": [
"<node_internals>/**" "<node_internals>/**"
], ],
"runtimeExecutable": "/home/karl/.nvm/versions/node/v20.19.3/bin/node",
"program": "${workspaceFolder}/bin/www", "program": "${workspaceFolder}/bin/www",
"env": { "env": {
"DBHOST": "vps.k-world.me.uk", "DBHOST": "vps.k-world.me.uk",
"DBUSER": "root", "DBUSER": "root",
"DBPASS": "Grd555269", "DBPASS": "Grd555269",
"DATABASE": "BBLB_DNS", "DATABASE": "BBLB_DNS",
"DBPORT": "3306", "DBPORT": "5405",
"TORSSRV": "localhost", "TORSSRV": "localhost",
"TORSPWD": "KarlMax", "TORSPWD": "KarlMax",
} }
@ -44,6 +46,7 @@
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "Checker", "name": "Checker",
"runtimeExecutable": "/home/karl/.nvm/versions/node/v20.19.3/bin/node",
"skipFiles": [ "skipFiles": [
"<node_internals>/**" "<node_internals>/**"
], ],
@ -53,7 +56,7 @@
"DBUSER": "root", "DBUSER": "root",
"DBPASS": "Grd555269", "DBPASS": "Grd555269",
"DATABASE": "BBLB_DNS", "DATABASE": "BBLB_DNS",
"DBPORT": "3306", "DBPORT": "5405",
"TORSSRV": "localhost", "TORSSRV": "localhost",
"TORSPWD": "KarlMax", "TORSPWD": "KarlMax",
} }

View File

@ -9,6 +9,7 @@ require('dotenv').config()
var app = require('../app'); var app = require('../app');
var debug = require('debug')('react-backend:server'); var debug = require('debug')('react-backend:server');
var http = require('http'); var http = require('http');
const pjson = require('../package.json');
/** /**
* Get port from environment and store in Express. * Get port from environment and store in Express.
@ -89,4 +90,5 @@ function onListening() {
? 'pipe ' + addr ? 'pipe ' + addr
: 'port ' + addr.port; : 'port ' + addr.port;
debug('Listening on ' + bind); debug('Listening on ' + bind);
console.log(`Version: ${pjson.version}`);
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "react-backend", "name": "react-backend",
"version": "1.0.1", "version": "1.0.2",
"private": true, "private": true,
"scripts": { "scripts": {
"start": "node ./bin/www" "start": "node ./bin/www"