get version from env

This commit is contained in:
slynn1324 2021-01-25 11:15:39 -06:00
parent 3c72375532
commit 9385a61fea

View file

@ -23,7 +23,7 @@ process.on('SIGTERM', () => {
process.exit(0);
});
const VERSION = require("fs").existsSync("version.txt") ? require("fs").readFileSync("version.txt", "utf8").trim() : "none";
const VERSION = process.env['TINYPIN_VERSION'] ? process.env['TINYPIN_VERSION'].trim() : "none";
const argv = yargs
.option('slow', {