From addc7365c4e7ed4cd9ee6c0ea7b8daea355b3b04 Mon Sep 17 00:00:00 2001 From: Absurdon Date: Sun, 5 Mar 2023 17:25:06 +0000 Subject: [PATCH] fix startup --- bin/entry.sh | 2 +- newrelic.js | 24 ------------------------ package.json | 18 +++++++++--------- 3 files changed, 10 insertions(+), 34 deletions(-) delete mode 100644 newrelic.js diff --git a/bin/entry.sh b/bin/entry.sh index 93d20e3..4a95301 100644 --- a/bin/entry.sh +++ b/bin/entry.sh @@ -6,4 +6,4 @@ if [ -f "/home/web/tmp/.updatePublic" ]; then rm -f /home/web/tmp/.updatePublic fi -node index.js +node index.mjs diff --git a/newrelic.js b/newrelic.js deleted file mode 100644 index 03fef20..0000000 --- a/newrelic.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * New Relic agent configuration. - * - * See lib/config.defaults.js in the agent distribution for a more complete - * description of configuration variables and their potential values. - */ -exports.config = { - /** - * Array of application names. - */ - app_name: ['enslgathers'], - /** - * Your New Relic license key. - */ - license_key: process.env.NEW_RELIC_LICENSE_KEY, - logging: { - /** - * Level at which to log. 'trace' is most useful to New Relic when diagnosing - * issues with the agent, 'info' and higher will impose the least overhead on - * production applications. - */ - level: 'info' - } -} diff --git a/package.json b/package.json index 8e01804..37bfd54 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "sws_gathers", - "version": "2.0.3", + "version": "2.1.0", "description": "ENSL Gather Service", - "main": "index.js", + "main": "index.mjs", "keywords": [ "NS2", "Gathers", @@ -10,25 +10,25 @@ ], "scripts": { "test": "NODE_ENV=test mocha spec/", - "start": "npm run compile && node index.js", - "start_production": "npm run compile_production & node index.js", + "start": "npm run compile && node index.mjs", + "start_production": "npm run compile_production & node index.mjs", "watch": "npm run compile && node_modules/brunch/bin/brunch watch --server", "compile": "node node_modules/brunch/bin/brunch build", "compile_production": "node node_modules/brunch/bin/brunch build --production", - "dev": "nodemon index.js", + "dev": "nodemon index.mjs", "snyk-protect": "snyk protect", "prepare": "npm run snyk-protect" }, "repository": { "type": "git", - "url": "https://github.com/cblanc/sws_gathers" + "url": "https://github.com/ENSL/ensl_gathers" }, "author": "", "license": "MIT", "bugs": { - "url": "https://github.com/cblanc/sws_gathers/issues" + "url": "https://github.com/ENSL/ensl_gathers/issues" }, - "homepage": "https://github.com/cblanc/sws_gathers", + "homepage": "https://github.com/ENSL/ensl_gathers", "dependencies": { "async": "~1.4.0", "bootstrap": "^4.0.0", @@ -89,4 +89,4 @@ "node": ">=10.13.0" }, "snyk": true -} +} \ No newline at end of file