LogoLogo
Run to Console
  • ClawCloud Run
    • Document
    • Getting Started
      • Create a DevBox
      • Deploy Database
      • Deploy from Docker
      • Deploy from Template
    • Guide
      • App Launchpad
        • Install Application
        • Update Application
        • Custom Domain
        • Exposing Multiple Ports
        • Environment Variables
        • Configuration Files
        • Auto Scaling
        • Persistent Storage
        • Custom Domain Certificates
      • Devbox
        • Devbox List
        • Devbox Details
        • Devbox Release
      • Database
        • PostgreSQL
        • MySQL
        • Redis
        • MongoDB
        • Kafka
        • Milvus
      • Object Storage
      • Advanced
        • Workspace
        • Terminal
        • Cron Job
        • KubeConfig
    • Pricing
    • Billing & Usage
    • Migration
      • Migrate from Docker
      • Migrate from Docker Compose
    • Architecture
      • Devbox Architecture
      • System Architecture
      • User Architecture
    • Legal
      • Privacy Policy
      • Terms and Conditions
      • Data Processing Addendum
    • Changelog
    • Best Practice
    • FAQ
    • More
      • Abuse Complaint
    • Help
  • Blog
Powered by GitBook

Copyright @ 2023-Present CLAWCLOUD. All Rights Reserved.

On this page
  • Why Environment Variables Matter
  • Defining Environment Variables
  • Example Use Cases

Was this helpful?

Export as PDF
  1. ClawCloud Run
  2. Guide
  3. App Launchpad

Environment Variables

Discover the importance of environment variables in ClawCloud Run and learn how to leverage them for configuring containerized applications. Master batch input methods to streamline configuration mana

PreviousExposing Multiple PortsNextConfiguration Files

Last updated 2 months ago

Was this helpful?

Why Environment Variables Matter

In ClawCloud Run, environment variables are critical tools for managing configuration data in containerized applications. They enable you to:

  • Decouple configuration from code: Provide dynamic settings (e.g., API keys, database URLs) without modifying your application’s code or container image.

  • Simplify deployment: Adjust configurations across environments (development, staging, production) seamlessly.

  • Enhance security: Avoid hardcoding sensitive information like credentials.


Defining Environment Variables

Batch Input in APP Launchpad

ClawCloud Run allows you to define environment variables in bulk through the APP Launchpad interface:

  1. Format:

    • Each variable is defined as a key-value pair.

    • Use = or : as separators (e.g., DB_HOST=localhost or API_KEY:abc123).

    • Enter one variable per line.

  2. Automatic Sanitization:

    • ClawCloud Run automatically removes invalid characters (e.g., spaces, special symbols) from keys to ensure validity.


Example Use Cases

  • Database Configuration:

    DB_HOST=wordpress-fuqgvtds-mysql-mysql.ns-a497cy4s.svc
    DB_PORT=3306  
    DB_USER=root  
  • Third-Party API Integration:

    STRIPE_KEY=sk_live_abc123  
    SENDGRID_API_KEY=SG.xyz456  
  • Feature Toggles:

    ENABLE_BETA_FEATURES=true  
    MAINTENANCE_MODE=false