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
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m17s
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user