mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 10:27:32 -06:00
Attempt to get working
This commit is contained in:
@@ -92,6 +92,7 @@ const opts = nopt({
|
||||
loki: [String],
|
||||
discoveryonly: [String],
|
||||
prediscovered: [String],
|
||||
version: [Boolean],
|
||||
});
|
||||
|
||||
if (opts.debug) logger.level = 'debug';
|
||||
@@ -780,6 +781,14 @@ async function main() {
|
||||
startListening(webServer);
|
||||
}
|
||||
|
||||
if (opts.version) {
|
||||
logger.info('Compiler Explorer version info:');
|
||||
logger.info(` git release ${gitReleaseName}`);
|
||||
logger.info(` release build ${releaseBuildNumber}`);
|
||||
logger.info('Exiting');
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
main()
|
||||
.then(() => null)
|
||||
.catch(err => {
|
||||
|
||||
@@ -32,6 +32,9 @@ python3 ./etc/scripts/politic.py
|
||||
# Output some magic for GH to set the branch name
|
||||
echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
|
||||
|
||||
# Run to make sure we haven't just made something that won't work
|
||||
node ./app.js --version
|
||||
|
||||
echo "${HASH}" >out/dist/git_hash
|
||||
echo "${RELEASE_NAME}" >out/dist/release_build
|
||||
rm -rf out/dist-bin
|
||||
|
||||
+4
-1
@@ -15,7 +15,10 @@
|
||||
"node": ">=16"
|
||||
},
|
||||
"main": "./app.js",
|
||||
"esm": true,
|
||||
"esm": {
|
||||
"mode": "all",
|
||||
"cache": false
|
||||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^5.15.4",
|
||||
"@sentry/browser": "^6.16.1",
|
||||
|
||||
Reference in New Issue
Block a user