Skip to content
Snippets Groups Projects
Commit 1c654fe6 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

main: Load the controllers when run from the webapp

parent bad9fb95
No related branches found
No related tags found
No related merge requests found
......@@ -43,9 +43,16 @@ def read_config(config_file):
return conf
def load_controllers():
"""Load the controllers for the application"""
from swh.web.ui import controller # flake8: noqa
def run_from_webserver(environ, start_response):
"""Run the WSGI app from the webserver, loading the configuration."""
load_controllers()
config_path = '/etc/softwareheritage/webapp/webapp.ini'
conf = read_config(config_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment