Deploy langkilde.se to Production
When to use this skill
- •After pushing commits to main
- •When the user says "deploy", "release", "publish", or "go live"
- •After completing changes the user wants published
Pre-deployment checklist
- •Verify all changes are committed:
git status - •Verify changes are pushed to origin/main:
git log origin/main..HEAD
If there are unpushed commits, push them first:
bash
git push
Deploy command
SSH into the production server and run the deploy script:
bash
ssh -i ~/.ssh/id_ed25519 daniel.langkilde@35.217.49.95 "cd /home/daniel.langkilde/langkilde && ./deploy.sh"
What the deploy script does
- •Pulls latest from git (hard resets to origin/main)
- •Clears build cache
- •Runs
npm install - •Builds Astro static site (
npm run build) - •Syncs
dist/to/srv/astro/ - •Tests and reloads nginx
- •Purges Cloudflare cache
Post-deployment
After successful deployment, the site is live at https://langkilde.se
The deployment summary will show:
- •Git commit deployed
- •Build duration
- •Cloudflare cache purge status