Add PM2 setup to deployment script

Add a start script using vite preview on port 4174 and replace the
static file copy step in deploy.sh with PM2 start/reload logic.
This commit is contained in:
2026-05-18 21:46:55 +03:00
parent 7d48ec3f78
commit ed6956eba5
2 changed files with 10 additions and 4 deletions

View File

@@ -10,6 +10,7 @@
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" -- && cp public/.htaccess dist/.htaccess",
"preview": "vite preview",
"start": "vite preview --port 4174 --host",
"build-only": "vite build",
"type-check": "vue-tsc --build",
"lint": "eslint . --fix --cache",
@@ -37,4 +38,4 @@
"vite-plugin-vue-devtools": "^8.0.3",
"vue-tsc": "^3.1.1"
}
}
}