nodestatus-server 1.2.3-beta → 1.2.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/app.js +4 -2
- package/build/dist/hotaru-admin/assets/{LayoutHandler.da29a732.js → LayoutHandler.1fc94cfd.js} +2 -2
- package/build/dist/hotaru-admin/assets/{Login.6ef8fc2b.js → Login.448760c5.js} +1 -1
- package/build/dist/hotaru-admin/assets/{index.07e44c0e.css → index.68514337.css} +1 -1
- package/build/dist/hotaru-admin/assets/{index.34efde28.js → index.75bca7ee.js} +1 -1
- package/build/dist/hotaru-admin/index.html +2 -2
- package/build/dist/hotaru-theme/assets/{index.002793ef.css → index.377aecc7.css} +1 -1
- package/build/dist/hotaru-theme/assets/{index.458c1b8a.js → index.5b42c623.js} +1 -1
- package/build/dist/hotaru-theme/index.html +2 -2
- package/package.json +2 -1
- package/scripts/init.js +9 -4
package/build/app.js
CHANGED
|
@@ -53259,10 +53259,12 @@ exports.InvalidOptionArgumentError = InvalidArgumentError; // Deprecated
|
|
|
53259
53259
|
exports.Option = Option;
|
|
53260
53260
|
}(commander, commander.exports));
|
|
53261
53261
|
|
|
53262
|
-
|
|
53262
|
+
if (process.env.NODE_ENV !== "TEST") {
|
|
53263
|
+
dotenv__default["default"].config({ path: require$$1$1.resolve(require$$1$3.homedir(), ".nodestatus/.env.local") });
|
|
53264
|
+
}
|
|
53263
53265
|
commander.exports.program.option("-db, --database <db>", "the path of database", require$$1$3.platform() === "win32" ? `file:${require$$1$1.resolve(require$$1$3.homedir(), ".nodestatus/db.sqlite")}` : "file:/usr/local/NodeStatus/server/db.sqlite").option("-p, --port <port>", "the port of NodeStatus", "35601").option("-i, --interval <interval>", "update interval", "1500").parse(process.argv);
|
|
53264
53266
|
const options = commander.exports.program.opts();
|
|
53265
|
-
let database = process.env.DATABASE || (process.env.NODE_ENV === "TEST" ? require$$1$1.resolve(__dirname, "../../db.
|
|
53267
|
+
let database = process.env.DATABASE || (process.env.NODE_ENV === "TEST" ? require$$1$1.resolve(__dirname, "../../db.test.sqlite") : options.database);
|
|
53266
53268
|
if (!(database.includes("file:") || database.includes("mysql:") || database.includes("postgresql:"))) {
|
|
53267
53269
|
database = `file:${database}`;
|
|
53268
53270
|
}
|