23 lines
701 B
Bash
Executable File
23 lines
701 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script deploys your website to both your VPS and Vercel
|
|
|
|
# Build the site
|
|
echo "Building the site..."
|
|
npx parcel build index.html
|
|
|
|
# Deploy to VPS
|
|
echo "Deploying to VPS..."
|
|
rsync -avz --delete dist/ root@boilerhaus.org:/var/www/boilerhaus.org/
|
|
|
|
# Push changes to Gitea (now the origin remote)
|
|
echo "Pushing changes to Gitea..."
|
|
git add .
|
|
git commit -m "Update website content" || echo "No changes to commit"
|
|
git push origin main
|
|
|
|
# Push changes to GitHub for Vercel deployment (chriswylde.xyz)
|
|
echo "Pushing changes to GitHub for Vercel deployment..."
|
|
git push github main || echo "Failed to push to GitHub. Make sure the remote is correctly set up."
|
|
|
|
echo "Deployment complete!" |