Static Sites quick start
Deploy a static website or single-page application in just a few minutes.
Prerequisites
- A DanubeData account
Step 1: Navigate to Static Sites
- Click Static Sites in the sidebar
- Click Create Static Site
Step 2: Configure your site
Fill in the creation form:
- Site name — A descriptive name for your site (e.g.,
my-portfolio) - Slug — Auto-generated from the name. Your site URL will be
https://{slug}.pages.danubedata.ro - Description — Optional description for your reference
Step 3: Choose a plan
| Plan | Storage | Bandwidth | Sites | Custom domains | Price |
|---|---|---|---|---|---|
| Free | 100 MB | 10 GB | 1 | 0 | EUR 0.00/mo |
| Starter | 500 MB | 100 GB | 10 | 5 per site | EUR 2.99/mo |
| Pro | 2 GB | 500 GB | 50 | 20 per site | EUR 9.99/mo |
Tip: Start with the Free plan for personal projects and testing. Upgrade any time from the site settings.
Step 4: Choose a deployment method
Option A: ZIP upload
Best for pre-built sites and quick deployments.
- Select ZIP Upload as the deployment method
- Click Create Static Site
- On the site detail page, click Upload and select your ZIP file containing the site files
Your ZIP file should contain the built site files (HTML, CSS, JS, images) at the root level or in a subdirectory matching your publish directory setting.
Option B: Git repository
Best for continuous deployment from source control.
- Select Git Repository as the deployment method
- Enter your Repository URL (e.g.,
https://github.com/username/my-site) - Set the Branch (defaults to
main) - Set the Publish directory — the folder containing your built files (e.g.,
dist,build,public, or/for root) - For private repositories, select an authentication method:
- SSH Key — Paste your deploy key
- Access Token — Enter a personal access token
- Click Create Static Site
The first build starts automatically. Subsequent pushes to the configured branch trigger new builds.
Option C: CLI push
Best for CI/CD pipelines and automated workflows.
- Select CLI Push as the deployment method
- Click Create Static Site
- Use the API to deploy:
# Create a tarball of your site files
tar -czf site.tar.gz -C ./dist .
# Deploy via API
curl -X POST \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-F "file=@site.tar.gz" \
https://api.danubedata.ro/api/v1/static-sites/{site-id}/deploy
Step 5: Wait for the build
After uploading or pushing, your site goes through these stages:
- Pending — Build queued
- Building — Container image being built
- Deploying — Site being deployed to infrastructure
- Active — Site is live
The dashboard updates in real time. Most builds complete within 1-2 minutes.
Step 6: Visit your site
Once the status shows Active, your site is live at:
https://{slug}.pages.danubedata.ro
Click the URL on the site detail page to open it in a new tab.
Step 7: Set up webhooks for Git (optional)
If you chose Git repository deployment, set up automatic builds on push:
- On the site detail page, find the Git Configuration section
- Copy the Webhook URL and Webhook Secret
- In your Git provider (GitHub, GitLab, or Bitbucket):
- Go to repository Settings > Webhooks
- Add a new webhook with the URL and secret from the dashboard
- Select Push events only
- Enable Auto-deploy on push in the site settings
Now every push to your configured branch triggers a new deployment automatically.
Step 8: Add a custom domain (optional)
Available on Starter and Pro plans:
- Go to the site detail page
- Click the Domains tab
- Click Add Domain and enter your domain (e.g.,
www.example.com) - Add the DNS TXT record shown in the dashboard to your DNS provider:
- Record name —
_danubedata-verify.your-domain.com - Record value — The verification token from the dashboard
- Record name —
- Click Verify once the DNS record is in place
- Add a CNAME record pointing your domain to
{slug}.pages.danubedata.ro - A TLS certificate is provisioned automatically after the CNAME is active
Common operations
| Operation | How |
|---|---|
| Upload new version | Site detail page > Upload > select ZIP file |
| Trigger rebuild | Site detail page > Redeploy |
| View build logs | Site detail page > build entry > view logs |
| Roll back | Site detail page > Deployments tab > Activate on a previous deployment |
| Add custom domain | Site detail page > Domains tab > Add Domain |
| Enable password protection | Site detail page > Edit > toggle Password Protection |
| Delete site | Site detail page > Delete |
Troubleshooting
Build failed
- Check the build logs on the site detail page for error details
- Ensure your ZIP file contains valid static files (HTML, CSS, JS)
- Verify the ZIP is not corrupted and is under 200 MB
- For Git deployments, verify the repository URL and credentials are correct
Site shows "404 Not Found"
- Ensure your site has an
index.htmlfile at the root of the publish directory - For SPAs, verify that the publish directory setting matches your build output folder
Custom domain not working
- Verify the DNS TXT record is in place and verification status shows Verified
- Ensure you have added a CNAME record pointing to
{slug}.pages.danubedata.ro - DNS changes may take up to 24 hours to propagate, though most take only minutes
- The TLS certificate is provisioned after the CNAME is active — check the TLS status in the dashboard
Git webhook not triggering builds
- Verify the webhook URL and secret match what is shown in the dashboard
- Check that the webhook is configured for push events
- Ensure Auto-deploy on push is enabled in the site settings
- Check the webhook delivery logs in your Git provider for errors
Next steps
- Static Sites product documentation — Full feature reference including plans, caching, and technical specs
- Custom domains — DNS verification and TLS setup
- Git deployments — Webhooks and auto-deploy
Questions? Contact support at support@danubedata.ro