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:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user