.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
LANGFLOW_CONFIG_DIR
Config directory Directory where files, logs and database will be stored Example: LANGFLOW_CONFIG_DIR=~/.langflow
LANGFLOW_SAVE_DB_IN_CONFIG_DIR
Save database in the config directory Values: true, false If false, the database will be saved in Langflow's root directory This means that…
LANGFLOW_DATABASE_URL
secret
Database URL Postgres example: LANGFLOW_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/langflow SQLite example:
LANGFLOW_LANGCHAIN_CACHE
Cache type
LANGFLOW_HOST
Server host Example: LANGFLOW_HOST=127.0.0.1
LANGFLOW_WORKERS
Worker processes Example: LANGFLOW_WORKERS=1
LANGFLOW_PORT
Server port Example: LANGFLOW_PORT=7860
LANGFLOW_LOG_LEVEL
Logging level Example: LANGFLOW_LOG_LEVEL=critical
LANGFLOW_LOG_FILE
Path to the log file Example: LANGFLOW_LOG_FILE=logs/langflow.log
LANGFLOW_FRONTEND_PATH
Path to the frontend directory containing build files Example: LANGFLOW_FRONTEND_PATH=/path/to/frontend/build/files
LANGFLOW_OPEN_BROWSER
Whether to open the browser after starting the server Values: true, false Example: LANGFLOW_OPEN_BROWSER=true
LANGFLOW_REMOVE_API_KEYS
secret
Whether to remove API keys from the projects saved in the database Values: true, false Example: LANGFLOW_REMOVE_API_KEYS=false
LANGFLOW_CACHE_TYPE
Whether to use RedisCache or InMemoryCache Values: memory, redis Example: LANGFLOW_CACHE_TYPE=memory If you want to use redis then the…
LANGFLOW_AUTO_LOGIN
Set AUTO_LOGIN to false if you want to disable auto login and use the login form to login. LANGFLOW_SUPERUSER and…
LANGFLOW_SUPERUSER
Superuser username Example: LANGFLOW_SUPERUSER=admin
LANGFLOW_SUPERUSER_PASSWORD
secret
Superuser password Example: LANGFLOW_SUPERUSER_PASSWORD=123456
LANGFLOW_STORE_ENVIRONMENT_VARIABLES
Should store environment variables in the database Values: true, false
brew install flyctl && fly launch --from https://github.com/brylie/langflow
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/brylie/langflow
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/brylie/langflow