Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: Vite UI fails to start on Windows via PM2

[._.]/ Adam Eivy905eaf96e2ee
diff --git a/.changelog/v1.4.x.md b/.changelog/v1.4.x.md
index 2c5e31f480..7586da933f 100644
--- a/.changelog/v1.4.x.md
+++ b/.changelog/v1.4.x.md
@@ -30,3 +30,7 @@ Cross-platform compatibility improvements for Windows and exFAT filesystems.
### CoS auto-spawns agents on fresh install
- Skip improvement task generation during initial startup evaluation to prevent auto-spawning agents when no tasks should exist yet
- Regular scheduled evaluations still generate improvement tasks as normal
+
+### Windows: Vite UI fails to start via PM2
+- PM2 was running `node_modules/.bin/vite` which is a Unix shell script on Windows — Node.js tried to parse it as JS
+- Changed to reference the actual JS entry point (`client/node_modules/vite/bin/vite.js`) directly
diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs
index b9692fa79b..0f84c6e2fc 100644
--- a/ecosystem.config.cjs
+++ b/ecosystem.config.cjs
@@ -64,7 +64,7 @@ module.exports = {
},
{
name: 'portos-ui',
- script: path.join(__dirname, 'node_modules', '.bin', 'vite'),
+ script: path.join(__dirname, 'client', 'node_modules', 'vite', 'bin', 'vite.js'),
cwd: path.join(__dirname, 'client'),
log_date_format: LOG_DATE_FORMAT,
args: `--host 0.0.0.0 --port ${PORTS.UI}`,
diff --git a/package-lock.json b/package-lock.json
index 0380f48908..0a9961553a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "portos",
- "version": "1.4.2",
+ "version": "1.4.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "portos",
- "version": "1.4.2",
+ "version": "1.4.3",
"license": "MIT",
"dependencies": {
"express": "^4.21.2",
diff --git a/package.json b/package.json
index 8d15b8b030..929fcd3922 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "portos",
- "version": "1.4.2",
+ "version": "1.4.3",
"private": true,
"description": "Local dev machine App OS portal",
"author": "Adam Eivy (@antic|@atomantic)",