... * Serving Flask app "main" (lazy loading) * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) ...
Как настроить wsgi в продакшен?
конф апача:
<VirtualHost *:80> ServerAdmin webmaster@site ServerName site WSGIScriptAlias / /var/www/domains/site/wsgi.py WSGIProcessGroup site WSGIScriptReloading On WSGIPassAuthorization On <Directory "/var/www/domains/site/"> Require all granted </Directory> <Directory "/var/www/domains/site/static/"> Require all granted </Directory> Alias /static "/var/www/domains/site/static" </VirtualHost>