profoundjs 6.0.0-beta.3 → 6.0.0-beta.7
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/index.js +1 -0
- package/package.json +9 -9
- package/profound.jse +1 -1
- package/setup/completeInstall.js +465 -0
- package/setup/complete_install.js +22 -0
- package/setup/config.js +1 -1
- package/setup/install.js +63 -0
- package/setup/install_utils.js +123 -0
- package/setup/modules/puiscreens.json +23 -25
- package/setup/package.json +2 -2
- package/setup/pjsdist.savf +0 -0
- package/setup/setup.js +514 -864
- package/setup/start.js +12 -1
package/setup/start.js
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
async function startPJS() {
|
|
3
3
|
var profoundjs = require("profoundjs");
|
|
4
|
-
|
|
4
|
+
try {
|
|
5
|
+
var config = require("./config.js");
|
|
6
|
+
}
|
|
7
|
+
catch (error) {
|
|
8
|
+
console.error(error);
|
|
9
|
+
const YELLOW = process.stdout.isTTY ? "\x1b[33m" : "";
|
|
10
|
+
const RED = process.stdout.isTTY ? "\x1b[31m" : "";
|
|
11
|
+
const RESET = process.stdout.isTTY ? "\x1b[0m" : "";
|
|
12
|
+
console.error(`\n${RED}Unable to read config.js.${RESET}`);
|
|
13
|
+
console.error(`${YELLOW}To configure and complete installation, run:${RESET} node complete_install.js`);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
5
16
|
profoundjs.applyConfig(config);
|
|
6
17
|
var isWorker = await profoundjs.server.listen();
|
|
7
18
|
if (isWorker) {
|