Dash Gunicorn Production Server

Sub-skill of dash: Gunicorn Production Server (+2).

vamseeachanta Updated

File contents

Gunicorn Production Server (+2)

Gunicorn Production Server

# wsgi.py
from app import app

server = app.server

if __name__ == "__main__":
    server.run()
# Run with Gunicorn
gunicorn wsgi:server -b 0.0.0.0:8050 -w 4

Docker Deployment

# Dockerfile
FROM python:3.11-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

*See sub-skills for full details.*

## Cloud Deployment (Heroku)


```txt
# Procfile
web: gunicorn wsgi:server

# requirements.txt
dash>=2.14.0
dash-bootstrap-components>=1.5.0
plotly>=5.18.0
pandas>=2.0.0
gunicorn>=21.0.0

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/data/analysis/dash/gunicorn-production-server commit e88ca45035

Frequently asked questions

npx skillmds@latest add vamseeachanta/dash-gunicorn-production-server