Skip to content

wsgi

plantimager.webui.wsgi Link

WSGI Entry Point for Plant Imager Web Interface

This module provides the WSGI entry point to run the Plant Imager web application using a WSGI-compatible server. It sets up the Dash web application and configures it to connect with the REST API backend.

Key Features
  • Configures and initializes the Plant Imager Dash application for WSGI deployment
  • Sets up the correct URL base path name for the application
  • Allows for custom configuration of the server host, port, and proxy settings
Usage Examples

Run the web interface with default REST API settings using a WSGI server like uWSGI

uwsgi --http :8080 --module plantimager.webui.wsgi:application --callable application --master

Run with Gunicorn

gunicorn wsgi:application

Direct call with Python for development purposes:

python src/webui/plantimager/webui/wsgi.py
Should then be accessible under: https://localhost:8080/webui/