work on deploy to flyer-crawler.projectium.com
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m17s

This commit is contained in:
2025-11-10 10:09:59 -08:00
parent 043ba639ed
commit 9bc37fc09f

View File

@@ -72,7 +72,8 @@ jobs:
echo "Deploying frontend files to local web server path..."
# Ensure the destination directory exists before copying.
mkdir -p "/var/www/flyer-crawler.projectium.com"
# Use rsync to efficiently copy files from the build output to the web server directory.
# Use rsync to efficiently copy files from the 'dist' output to the web server directory.
# The '--delete' flag removes old files from the destination, ensuring a clean deployment.
rsync -avz --delete build/ "/var/www/flyer-crawler.projectium.com"
# We exclude '.env.local' to prevent deleting the server-specific environment file.
rsync -avz --delete --exclude '.env.local' dist/ "/var/www/flyer-crawler.projectium.com"
echo "Local deployment complete."