Deployment Guide¶
This guide covers different deployment strategies and best practices for deploying your site using nsyte.
Basic Deployment¶
The simplest way to deploy your site is using the upload
command:
This will:
- Upload your files to configured relays
- Publish to configured blossom servers
- Update your site's metadata
Deployment Strategies¶
1. Manual Deployment¶
Suitable for:
- Small sites
- Infrequent updates
- Personal projects
Steps:
- Build your site
- Run
nsyte upload
- Verify the deployment
2. Automated Deployment¶
Suitable for:
- Team projects
- Frequent updates
- Production sites
Options:
- GitHub Actions
- GitLab CI
- Custom scripts
See CI/CD Guide for detailed setup instructions.
3. Staged Deployment¶
Suitable for:
- Large sites
- Critical applications
- Testing environments
Steps:
- Deploy to staging relays
- Test the deployment
- Deploy to production
Deployment Options¶
Basic Upload¶
Force Re-upload¶
Purge Deleted Files¶
Set Concurrency¶
SPA Support¶
Deployment Checklist¶
Before deploying:
- Configuration
- [ ] Verify relay configuration
- [ ] Check server settings
-
[ ] Review ignore patterns
-
Authentication
- [ ] Ensure proper authentication
- [ ] Verify bunker connection
-
[ ] Check key permissions
-
Content
- [ ] Build site
- [ ] Test locally
- [ ] Check file sizes
-
[ ] Verify links
-
Deployment
- [ ] Backup current site
- [ ] Run upload
- [ ] Verify deployment
- [ ] Check site metadata
Best Practices¶
1. Performance¶
- Optimize images and assets
- Use appropriate file formats
- Enable compression
- Implement caching
2. Reliability¶
- Use multiple relays
- Configure fallback servers
- Monitor deployment status
- Keep backups
3. Security¶
- Use secure authentication
- Protect sensitive data
- Regular key rotation
- Monitor access
4. Maintenance¶
- Regular updates
- Monitor site health
- Clean up old files
- Update dependencies
Troubleshooting¶
Common Issues¶
- Upload Failures
- Check network connectivity
- Verify relay liveness
- Ensure you are allowed to publish to provided relays
- Ensure that provided relays are not rate-limited.
-
Check authentication
-
Missing Files
- Review ignore patterns
- Check file paths
-
Verify build output
-
Authentication Errors
- Verify keys
- Check bunker connection
- Review bunker permissions
- Check configuration
Getting Help¶
- Check the GitHub Issues
- Review the Security Guide
- Join the Nostr channel
Next Steps¶
- Set up CI/CD integration
- Review security best practices
- Learn about local development