Deployment Guide ¶
markata-go generates static sites that can be deployed anywhere that serves HTML files. This guide helps you choose the best platform for your needs.
Platform Comparison ¶ #
| Platform | Free Tier | Custom Domain | Build Time | Best For |
|---|---|---|---|---|
| GitHub Pages | Unlimited | Yes (HTTPS) | ~2 min | Open source projects |
| Netlify | 100 GB/mo | Yes (HTTPS) | ~1 min | Teams, forms, functions |
| Vercel | 100 GB/mo | Yes (HTTPS) | ~1 min | Performance, edge |
| Cloudflare Pages | Unlimited | Yes (HTTPS) | ~2 min | Global CDN, Workers |
| AWS S3 | 5 GB (12 mo) | Yes (via CF) | Manual | Enterprise, AWS stack |
| Docker | N/A | Self-managed | ~30 sec | Self-hosted, control |
Quick Decision Guide ¶ #
Choose GitHub Pages if:
- Your code is on GitHub
- You want zero configuration
- You don’t need server-side features
Choose Netlify if:
- You need forms, functions, or split testing
- You want automatic deploy previews
- You’re working with a team
Choose Vercel if:
- Performance is your top priority
- You want edge functions
- You need analytics
Choose Cloudflare Pages if:
- You want unlimited bandwidth
- You need Workers integration
- Global performance matters
Choose AWS S3 if:
- You’re already in the AWS ecosystem
- You need fine-grained access control
- Enterprise compliance is required
Choose Docker if:
- You want full control
- You’re self-hosting other services
- You need offline capabilities
Building for Production ¶ #
Before deploying to any platform, build your site:
# Standard production build
markata-go build --clean
# Build with custom URL
MARKATA_GO_URL=https://example.com markata-go build --clean
# Verbose build for debugging
markata-go build --clean -v
Output Structure ¶ #
After building, your public/ directory contains:
public/
├── index.html # Home page
├── blog/
│ ├── index.html # Blog listing
│ ├── rss.xml # RSS feed
│ └── atom.xml # Atom feed
├── posts/
│ └── my-post/
│ └── index.html # Individual post
├── static/ # Assets (CSS, JS, images)
└── sitemap.xml
Environment Variables ¶ #
All platforms support these environment variables:
| Variable | Purpose | Example |
|---|---|---|
MARKATA_GO_URL |
Base URL for links and feeds | https://example.com |
MARKATA_GO_OUTPUT |
Output directory | public |
Next Steps ¶ #
Choose a platform guide to get started:
- GitHub Pages - Free hosting for GitHub repos
- Netlify - Feature-rich with generous free tier
- Vercel - Performance-focused deployment
- Cloudflare Pages - Unlimited bandwidth
- AWS S3 - Enterprise-grade static hosting
- Docker - Self-hosted containers
For self-hosting on your own servers, see the Self-Hosting Guide.