ework-web 0.10.3 → 0.10.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "type": "module",
5
5
  "description": "ework-web — standalone multi-project issue tracker. Local SQLite-backed, no external API dependency. Bun + TypeScript + SSR HTML.",
6
6
  "license": "MIT",
@@ -78,14 +78,16 @@ function buildEnvBlock(env: Map<string, string>, target: DeployTarget): string {
78
78
  if (v === undefined) continue;
79
79
  lines.push(`${k}=${v}`);
80
80
  }
81
- lines.push(`WORK_DB_HOST=${target.mysqlHost}`);
81
+ const mysqlHost = String(target.mysqlHost).replace(/:\d+$/, "");
82
+ lines.push(`WORK_DB_HOST=${mysqlHost}`);
82
83
  lines.push(`DAEMON_PORT=${String(target.daemonPort ?? 3101)}`);
83
84
  lines.push(`DAEMON_HOST=0.0.0.0`);
84
85
  lines.push(`DAEMON_ENV=production`);
85
86
  return lines.join("\n");
86
87
  }
87
88
 
88
- function buildSetupScript(envBlock: string, daemonPort: number, mysqlHost: string, mysqlPort: string): string {
89
+ function buildSetupScript(envBlock: string, daemonPort: number, mysqlHostRaw: string, mysqlPort: string): string {
90
+ const mysqlHost = mysqlHostRaw.replace(/:\d+$/, "");
89
91
  return [
90
92
  "set -e",
91
93
  `command -v npm >/dev/null 2>&1 || { curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash -; sudo apt-get install -y nodejs; }`,