clay-server 2.11.0-beta.23 → 2.11.0-beta.24
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/bin/cli.js +10 -0
- package/lib/daemon.js +1 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -450,6 +450,16 @@ async function restartDaemonFromConfig() {
|
|
|
450
450
|
saveConfig(newConfig);
|
|
451
451
|
|
|
452
452
|
var daemonScript = path.join(__dirname, "..", "lib", "daemon.js");
|
|
453
|
+
|
|
454
|
+
// Debug mode: run in foreground with logs to stdout
|
|
455
|
+
if (debugMode) {
|
|
456
|
+
process.env.CLAY_CONFIG = configPath();
|
|
457
|
+
newConfig.pid = process.pid;
|
|
458
|
+
saveConfig(newConfig);
|
|
459
|
+
require(daemonScript);
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
|
|
453
463
|
var logFile = logPath();
|
|
454
464
|
var logFd = fs.openSync(logFile, "a");
|
|
455
465
|
|
package/lib/daemon.js
CHANGED
|
@@ -150,6 +150,7 @@ var relay = createServer({
|
|
|
150
150
|
return { ok: true, slug: slug };
|
|
151
151
|
},
|
|
152
152
|
onCreateProject: function (projectName, wsUser) {
|
|
153
|
+
console.log("[daemon] onCreateProject wsUser:", JSON.stringify(wsUser ? { id: wsUser.id, role: wsUser.role, username: wsUser.username, linuxUser: wsUser.linuxUser } : null));
|
|
153
154
|
var os = require("os");
|
|
154
155
|
var { execSync } = require("child_process");
|
|
155
156
|
var baseDir;
|