Deploying from Templates
Step-by-step guide to deploying applications from Sproobo templates
Sproobo provides pre-configured templates for popular frameworks and stacks. Templates are the fastest way to get started with deploying applications.
ℹ️
Templates are battle-tested configurations that include best practices, security settings, and optimized Docker configurations.
Available Templates
Sproobo offers templates for:
Template Gallery
- Next.js: Production-ready Next.js with SSR and image optimization
- FastAPI: Python API with gunicorn and uvicorn
- Go API: Ultra-lean Go container with observability
- Static Site: Static exports with CDN routing
- Node.js: Express or Node.js applications
- PostgreSQL: Managed PostgreSQL database
- Redis: Redis cache and message broker
Deploying from a Template
- 1
Navigate to Deployments
In your project dashboard, click on "Deployments" in the sidebar.Navigate to the Deployments page from your project dashboard. - 2
Create New Deployment
Click "Create Deployment" or "New Deployment" button.Click Create Deployment to start deploying a new application. - 3
Choose Deployment Source
Select "Deploy from Template" as your deployment source.Choose Deploy from Template as your deployment method. - 4
Browse Templates
Browse the template gallery and click on the template you want to use.Browse available templates and select the one that matches your needs. - 5
Configure Deployment
Configure your deployment settings:- Deployment Name: A descriptive name for your deployment
- Server: Select which server to deploy to
- Port: Internal port your app will use
- Environment Variables: Add any required environment variables
Configure your deployment with a name, server, and settings. - 6
Review and Deploy
Review your configuration and click "Deploy". Sproobo will:- Pull the template configuration
- Build the Docker container
- Start the deployment on your server
- Configure HTTPS and routing
- Set up health checks
Watch as your deployment is built and deployed automatically. - 7
Deployment Ready
Once deployment is complete, you'll see:- A live HTTPS URL for your application
- Deployment status and health check status
- Access to logs and metrics
- Options to configure custom domains
Your deployment is ready! Access it via the provided HTTPS URL.
Template-Specific Configuration
Different templates may require different configuration:
Next.js Template
Next.js Configuration
- NODE_ENV: Set to "production" for production builds
- NEXT_PUBLIC_API_URL: Your API endpoint URL
- DATABASE_URL: PostgreSQL connection string (if using a database)
FastAPI Template
FastAPI Configuration
- PYTHON_ENV: Set to "production"
- DATABASE_URL: Database connection string
- SECRET_KEY: Secret key for encryption
Go API Template
Go Configuration
- PORT: Port your Go app listens on
- DATABASE_URL: Database connection string
- ENV: Environment name (production, staging, etc.)
Customizing Templates
You can customize templates by:
- 1
Add Environment Variables
Add custom environment variables in the deployment configuration. - 2
Modify Dockerfile
After initial deployment, you can modify the Dockerfile and redeploy. - 3
Add Custom Domains
Configure custom domains for your deployment.
Next Steps
Now that your deployment is running: