fix: update deployment workflow to use dist directory
All checks were successful
CI / update (push) Successful in 1m10s
All checks were successful
CI / update (push) Successful in 1m10s
Changes deployment process to build in default 'build' directory, then safely deploy to 'dist' directory by stopping the service first, ensuring clean deployment without serving partial builds.
This commit is contained in:
@@ -32,4 +32,9 @@ jobs:
|
||||
git fetch origin
|
||||
git reset --hard origin/master
|
||||
npm run build
|
||||
sudo systemctl restart homepage.service
|
||||
sudo systemctl stop homepage.service
|
||||
mkdir -p dist
|
||||
rm -rf dist/*
|
||||
mv build/* dist/
|
||||
rmdir build
|
||||
sudo systemctl start homepage.service
|
||||
|
||||
Reference in New Issue
Block a user