mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 12:41:49 +02:00
Readme: Make the deploy instructions distro agnostic
This commit is contained in:
parent
69116884b9
commit
e6f2a1c008
1 changed files with 5 additions and 15 deletions
20
README.rst
20
README.rst
|
@ -33,28 +33,18 @@ You can also set the `TESTING` flag to `True` so no mails are sent
|
|||
Deploy it
|
||||
=========
|
||||
|
||||
You have multiple options to deploy ihatemoney. Two of them are documented at the moment:
|
||||
|
||||
With Apache and mod_wsgi
|
||||
------------------------
|
||||
|
||||
1. Install Apache and mod_wsgi::
|
||||
1. Install Apache and mod_wsgi - libapache2-mod-wsgi(-py3) for Debian based and mod_wsgi for RedHat based distributions -
|
||||
|
||||
$ sudo apt-get install apache2
|
||||
# If you use Python3
|
||||
$ sudo apt-get install libapache2-mod-wsgi-py3
|
||||
# Or if you use Python2
|
||||
$ sudo apt-get install libapache2-mod-wsgi
|
||||
|
||||
2. Create an Apache virtual host based on the sample configuration file
|
||||
|
||||
$ sudo cp conf/apache-vhost.conf /etc/apache2/sites-available/ihatemoney.conf
|
||||
2. Create an Apache virtual host based on the sample configuration file in conf/apache-vhost.conf
|
||||
|
||||
3. Adapt it to your paths and specify your virtualenv path if you use one
|
||||
|
||||
4. Activate the virtual host and reload Apache ::
|
||||
|
||||
$ sudo a2ensite ihatemoney
|
||||
$ sudo service apache2 restart
|
||||
|
||||
4. Activate the virtual host if needed and restart Apache
|
||||
|
||||
With Nginx, Gunicorn and Supervisord
|
||||
------------------------------------
|
||||
|
|
Loading…
Reference in a new issue