@hienlh/ppm 0.8.74 → 0.8.75
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export function registerAutoStartCommands(program: Command): void {
|
|
|
10
10
|
.command("enable")
|
|
11
11
|
.description("Register PPM to start automatically on boot")
|
|
12
12
|
.option("-p, --port <port>", "Override port")
|
|
13
|
-
.option("-s, --share", "
|
|
13
|
+
.option("-s, --share", "(deprecated) Tunnel is now always enabled")
|
|
14
14
|
.option("-c, --config <path>", "Config file path")
|
|
15
15
|
.option("--profile <name>", "DB profile name")
|
|
16
16
|
.action(async (options) => {
|
package/src/index.ts
CHANGED
|
@@ -16,7 +16,7 @@ program
|
|
|
16
16
|
.command("start")
|
|
17
17
|
.description("Start the PPM server (background by default)")
|
|
18
18
|
.option("-p, --port <port>", "Port to listen on")
|
|
19
|
-
.option("-s, --share", "
|
|
19
|
+
.option("-s, --share", "(deprecated) Tunnel is now always enabled")
|
|
20
20
|
.option("-c, --config <path>", "Path to config file (YAML import into DB)")
|
|
21
21
|
.option("--profile <name>", "DB profile name (e.g. 'dev' → ppm.dev.db)")
|
|
22
22
|
.action(async (options) => {
|
package/src/server/index.ts
CHANGED
|
@@ -164,6 +164,9 @@ export async function startServer(options: {
|
|
|
164
164
|
config?: string;
|
|
165
165
|
profile?: string;
|
|
166
166
|
}) {
|
|
167
|
+
// Tunnel always enabled — cloudflared shares the server publicly
|
|
168
|
+
options.share = true;
|
|
169
|
+
|
|
167
170
|
// Load config
|
|
168
171
|
configService.load(options.config);
|
|
169
172
|
const port = parseInt(options.port ?? String(configService.get("port")), 10);
|
|
@@ -456,6 +456,7 @@ async function connectCloud(opts: { port: number }, serverArgs: string[], logFd:
|
|
|
456
456
|
tunnelUrl,
|
|
457
457
|
state: supervisorState,
|
|
458
458
|
appVersion: VERSION,
|
|
459
|
+
availableVersion: (readStatus().availableVersion as string) || null,
|
|
459
460
|
serverPid: serverChild?.pid ?? null,
|
|
460
461
|
uptime: Math.floor((Date.now() - startTime) / 1000),
|
|
461
462
|
timestamp: new Date().toISOString(),
|