Changes between Version 10 and Version 11 of UoL LAMP HowTo Install Python Flask Applications
- Timestamp:
- 10/10/18 14:55:16 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UoL LAMP HowTo Install Python Flask Applications
v10 v11 115 115 - [[Python Flask Gotchas Import Database Module Fails]] 116 116 117 118 117 119 == Python 3 118 120 … … 159 161 DirectoryIndex index.html 160 162 161 ### 'Main' server configuration #############################################162 <Directory {{{path to application folder}}}>163 SetEnv FLASK_SECRET_KEY {{{Some Secret Key}}}164 SetEnv ENV1 env1_value165 SetEnv ENV2 env2_value166 SetEnv ENV3 env3_value167 WSGIProcessGroup application168 WSGIApplicationGroup %{GLOBAL}169 Order allow,deny170 Allow from all171 </Directory>172 173 163 WSGIDaemonProcess application user=wwwrun threads=5 python-path=/local/venv/lib/python3.5/site-packages home={{{path to application folder}}} 174 164 WSGIScriptAlias / {{{path to application}}} … … 176 166 }}} 177 167 178 Change the values of:179 - {{{Some Secret Key}}} to be somethin' secret180 - {{{path to application folder}}} to be the application folder181 - {{{path to application}}} to be the path to the actual application182 183 And changing ENV1, 2 & 3 to be appropriate environment values.184 168 185 169 3. Edit the Apache modules conf: