Skip to content

feat: use gunicorn in production server instead of adev#85

Merged
bolinocroustibat merged 7 commits intomainfrom
remove-adev-from-production
Jan 20, 2026
Merged

feat: use gunicorn in production server instead of adev#85
bolinocroustibat merged 7 commits intomainfrom
remove-adev-from-production

Conversation

@bolinocroustibat
Copy link
Copy Markdown
Contributor

@bolinocroustibat bolinocroustibat commented Jan 6, 2026

Replace adev (dev server) with gunicorn for production deployments.

  • Add gunicorn to production dependencies
  • Add CSVAPI_APP_PORT environment variable support in run() functions
  • Update README with production server usage notes
  • Move aiohttp-devtools from production dependencies to dev dependency group (pyproject.toml and uv.lock)

⚠️ WARNING: This change requires a modified Dockerfile in the infra repository before deployment. The Dockerfile must be updated to use gunicorn instead of adev for this to work in production.

@bolinocroustibat bolinocroustibat self-assigned this Jan 6, 2026
@bolinocroustibat bolinocroustibat force-pushed the remove-adev-from-production branch from 3e5ce8e to cb2ef9c Compare January 6, 2026 12:42
Replace adev with python -m api_tabular.app for production deployments.
Add CSVAPI_APP_PORT environment variable support.

# Conflicts:
#	README.md
@bolinocroustibat bolinocroustibat force-pushed the remove-adev-from-production branch from 0dbb945 to 4093349 Compare January 7, 2026 14:31
Comment thread api_tabular/metrics/app.py Outdated

def run():
web.run_app(app_factory(), path=os.environ.get("CSVAPI_APP_SOCKET_PATH"))
socket_path = os.environ.get("CSVAPI_APP_SOCKET_PATH")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this ever used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSVAPI_APP_SOCKET_PATH you mean? Not as far as I know. Should we get rid of it?

@bolinocroustibat bolinocroustibat changed the title feat: use production server instead of adev feat: use gunicorn in production server instead of adev Jan 7, 2026
@bolinocroustibat bolinocroustibat merged commit 9384db4 into main Jan 20, 2026
4 checks passed
@bolinocroustibat bolinocroustibat deleted the remove-adev-from-production branch January 20, 2026 17:32
bolinocroustibat added a commit that referenced this pull request Jan 22, 2026
Replace adev (dev server) with gunicorn for production deployments.

- Add `gunicorn `to production dependencies
- Add `CSVAPI_APP_PORT` environment variable support in `run()`
functions
- Update README with production server usage notes
- Move `aiohttp-devtools` from production dependencies to dev dependency
group (`pyproject.toml` and `uv.lock`)

> ⚠️ **WARNING:** This change requires a modified Dockerfile in the
infra repository before deployment. The Dockerfile must be updated to
use `gunicorn` instead of `adev` for this to work in production.
bolinocroustibat added a commit that referenced this pull request Jan 22, 2026
Replace adev (dev server) with gunicorn for production deployments.

- Add `gunicorn `to production dependencies
- Add `CSVAPI_APP_PORT` environment variable support in `run()`
functions
- Update README with production server usage notes
- Move `aiohttp-devtools` from production dependencies to dev dependency
group (`pyproject.toml` and `uv.lock`)

> ⚠️ **WARNING:** This change requires a modified Dockerfile in the
infra repository before deployment. The Dockerfile must be updated to
use `gunicorn` instead of `adev` for this to work in production.
@bolinocroustibat bolinocroustibat added the enhancement New feature or request label Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants