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>/**"
],
"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": [
"<node_internals>/**"
],
"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": [
"<node_internals>/**"
],
@ -53,7 +56,7 @@
"DBUSER": "root",
"DBPASS": "Grd555269",
"DATABASE": "BBLB_DNS",
"DBPORT": "3306",
"DBPORT": "5405",
"TORSSRV": "localhost",
"TORSPWD": "KarlMax",
}

View File

@ -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}`);
}

View File

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