Skip to content

Commit e317377

Browse files
authored
Merge pull request #60 from splitly25/production-fix
Fix web deployment: serve built files instead of rebuilding
2 parents aae07fc + 5fd3692 commit e317377

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy-web.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
4848
if pm2 describe splitly-web > /dev/null 2>&1; then
4949
pm2 restart splitly-web
50+
else
51+
cd ~/splitly/web
52+
pm2 start npm --name splitly-web -- run production
5053
fi
5154
5255
# Save PM2 config

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "eslint .",
1010
"preview": "vite preview",
1111
"host": "vite --host",
12-
"production": "cross-env NODE_ENV=production vite build"
12+
"production": "vite preview --port 4173 --host"
1313
},
1414
"dependencies": {
1515
"@emotion/react": "^11.14.0",

0 commit comments

Comments
 (0)