Skip to content

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
Sproobo template gallery showing available templates
Browse the template gallery to find the right template for your application.

Deploying from a Template

  1. 1

    Navigate to Deployments

    In your project dashboard, click on "Deployments" in the sidebar.
    Sproobo deployments page navigation
    Navigate to the Deployments page from your project dashboard.
  2. 2

    Create New Deployment

    Click "Create Deployment" or "New Deployment" button.
    Sproobo create deployment button
    Click Create Deployment to start deploying a new application.
  3. 3

    Choose Deployment Source

    Select "Deploy from Template" as your deployment source.
    Sproobo deployment source selection
    Choose Deploy from Template as your deployment method.
  4. 4

    Browse Templates

    Browse the template gallery and click on the template you want to use.
    Sproobo template selection
    Browse available templates and select the one that matches your needs.
  5. 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
    Sproobo deployment configuration form
    Configure your deployment with a name, server, and settings.
  6. 6

    Review and Deploy

    Review your configuration and click "Deploy". Sproobo will:
    1. Pull the template configuration
    2. Build the Docker container
    3. Start the deployment on your server
    4. Configure HTTPS and routing
    5. Set up health checks
    Sproobo deployment progress
    Watch as your deployment is built and deployed automatically.
  7. 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
    Sproobo deployment success with live URL
    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. 1

    Add Environment Variables

    Add custom environment variables in the deployment configuration.
  2. 2

    Modify Dockerfile

    After initial deployment, you can modify the Dockerfile and redeploy.
  3. 3

    Add Custom Domains

    Configure custom domains for your deployment.

Next Steps

Now that your deployment is running: