mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Turn the WSGI file into a python module (#240)
* Turn the WSGI file into a python module * Update conf files to use the new wsgi module Apache and gunicorn now use the same entrypoint * Update Changelog
This commit is contained in:
parent
2ad4ef5466
commit
603ac10d6e
4 changed files with 5 additions and 2 deletions
|
@ -9,6 +9,9 @@ This document describes changes between each past release.
|
|||
### Changed
|
||||
|
||||
- **BREAKING CHANGE** Use a hashed ``ADMIN_PASSWORD`` instead of a clear text one, ``./budget/manage.py generate_password_hash`` can be used to generate a proper password HASH (#236)
|
||||
- **BREAKING CHANGE** Turn the WSGI file into a python module, renamed from budget/ihatemoney.wsgi to budget/wsgi.py. Please update your Apache configuration!
|
||||
- Changed the recommended gunicorn configuration to use the wsgi module as an entrypoint
|
||||
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
ServerName ihatemoney.example.com
|
||||
# Uncomment the python-home option if you use a virtualenv
|
||||
WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5 python-path=/path/to/ihatemoney/budget # python-home=/path/to/your/venv
|
||||
WSGIScriptAlias / /path/to/ihatemoney/budget/ihatemoney.wsgi
|
||||
WSGIScriptAlias / /path/to/ihatemoney/budget/wsgi.py
|
||||
ErrorLog /var/log/apache2/ihatemoney.example.com_error.log
|
||||
CustomLog /var/log/apache2/ihatemoney.example.com_access.log combined
|
||||
<Directory /path/to/ihatemoney>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[program:budget]
|
||||
command=/path/to/your/app/venv/bin/gunicorn -c /path/to/your/app/conf/gunicorn.conf.py run:app
|
||||
command=/path/to/your/app/venv/bin/gunicorn -c /path/to/your/app/conf/gunicorn.conf.py wsgi:application
|
||||
directory=/path/to/your/app/budget/
|
||||
user=www
|
||||
autostart=true
|
||||
|
|
Loading…
Reference in a new issue