Preview and deploy your Astrolock site
Ready to share your site with the world? This section covers previewing and deploying.
The Publishing Workflow
┌─────────────────────────────────────────────────────────────────────┐
│ ASTROLOCK PUBLISHING WORKFLOW │
└─────────────────────────────────────────────────────────────────────┘
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
│ WRITE │ ───▶ │ BUILD │ ───▶ │ PREVIEW │ ───▶ │ DEPLOY │
└─────────┘ └─────────┘ └─────────┘ └─────────┘
│ │ │ │
▼ ▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
│ Edit │ │ Generate│ │ Test │ │ Push │
│ content │ │ static │ │ locally │ │ live │
│ files │ │ files │ │ │ │ │
└─────────┘ └─────────┘ └─────────┘ └─────────┘
Commands:
─────────
astrolock astrolock astrolock astrolock
write build preview deploy [target]
Quick Commands
| Step | Command | Purpose |
|---|---|---|
| Write | astrolock write | Live development server |
| Build | astrolock build | Generate production files |
| Preview | astrolock preview | Test production build |
| Deploy | astrolock deploy [target] | Push to hosting target |
In This Section
- Prerequisites - What you need before deploying
- Previewing - Test your site before going live
- Deploying - Get your site online
Tip
Always preview your site before deploying to catch any issues.
Next Steps
Once you’ve published your site:
- Explore the CLI Reference for automation options
- See the Astrolock Documentation for advanced deployment setup (custom domains, CI/CD, Terraform)