Should now catch server start errors in the GitHub workflow

This commit is contained in:
00Fjongl 2024-07-24 22:49:30 -05:00
parent a1f4c13fc5
commit 70330f8d2b
2 changed files with 36 additions and 41 deletions

View file

@ -1,8 +1,3 @@
(async () => { (async () => {
try { await import("./src/server.mjs");
await import("./src/server.mjs");
} catch (e) {
console.error(e);
process.exit(1);
}
})(); })();

View file

@ -1,37 +1,37 @@
{ {
"name": "holyub", "name": "holyub",
"version": "6.3.0", "version": "6.3.0",
"repository": "https://github.com/QuiteAFancyEmerald/Holy-Unblocker", "repository": "https://github.com/QuiteAFancyEmerald/Holy-Unblocker",
"description": "Holy Unblocker is a secure web proxy service with support for many sites.", "description": "Holy Unblocker is a secure web proxy service with support for many sites.",
"main": "backend.js", "main": "backend.js",
"scripts": { "scripts": {
"start": "node backend.js", "start": "node backend.js",
"build": "npm run start", "build": "npm run start",
"test": "npm run proxy-validator", "test": "npm run proxy-validator",
"start-test-server": "node backend.js &", "start-test-server": "set -e; node backend.js & bg_pid=$!; wait \"${bg_pid}\"",
"proxy-validator": "node proxyServiceValidator.js" "proxy-validator": "node proxyServiceValidator.js"
}, },
"keywords": [ "keywords": [
"proxy", "proxy",
"node.js", "node.js",
"unblocker" "unblocker"
], ],
"author": "Titanium Network", "author": "Titanium Network",
"license": "GNU AFFERO", "license": "GNU AFFERO",
"dependencies": { "dependencies": {
"@mercuryworkshop/bare-as-module3": "^2.2.2", "@mercuryworkshop/bare-as-module3": "^2.2.2",
"@mercuryworkshop/bare-mux": "^2.0.1", "@mercuryworkshop/bare-mux": "^2.0.1",
"@mercuryworkshop/epoxy-transport": "^2.1.3", "@mercuryworkshop/epoxy-transport": "^2.1.3",
"@mercuryworkshop/libcurl-transport": "^1.3.7", "@mercuryworkshop/libcurl-transport": "^1.3.7",
"@titaniumnetwork-dev/ultraviolet": "3.2.1", "@titaniumnetwork-dev/ultraviolet": "3.2.1",
"@tomphttp/bare-server-node": "^2.0.3", "@tomphttp/bare-server-node": "^2.0.3",
"axios": "^1.7.2", "axios": "^1.7.2",
"express": "^4.19.2", "express": "^4.19.2",
"helmet": "^7.1.0", "helmet": "^7.1.0",
"mime-types": "^2.1.35", "mime-types": "^2.1.35",
"puppeteer": "^22.12.1", "puppeteer": "^22.12.1",
"rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz", "rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz",
"wisp-server-node": "^1.1.1", "wisp-server-node": "^1.1.1",
"ws": "^8.18.0" "ws": "^8.18.0"
} }
} }