##// END OF EJS Templates
integrations: refactor/cleanup + features, fixes #4181...
integrations: refactor/cleanup + features, fixes #4181 * added scopes on integrations, scopes are: - repo only - repogroup children only - root repos only - global (any repo) * integrations schemas now have separate section for the settings (eg. slack) and options (eg. scope/enabled) * added descriptions to integration types * added icons to integration types * added 'create new' integration page * added scope of integration to integrations list * added breadcrumbs for each repo/repogroup/global integrations pages * added sorting to integrations list * added pagination to integrations list * added icons to integrations list * added type filter to integrations list * added message to integrations list if none we found * added extra permissions check on integrations views * db migration from 56 => 57 - adds child_repos_only field * added tests for integrations triggered on events * added tests for integrations schemas * added tests for integrations views for repo/repogroup/admin

File last commit:

r1:854a839a default
r731:7a6d3636 default
Show More
apache-wsgi-coding.rst
55 lines | 1.7 KiB | text/x-rst | RstLexer
/ docs / admin / apache-wsgi-coding.rst

Apache WSGI Configuration

|RCM| can also be set up with Apache under mod_wsgi. To configure this use the following steps.

  1. Install mod_wsgi using the following command: aptitude install libapache2-mod-wsgi.
  2. Enable mod_wsgi using the following command: a2enmod wsgi
  3. Create a wsgi dispatch script, using the following examples.
WSGIDaemonProcess pylons \
threads=4 \
# check the python virtual env location
python-path=/home/web/rhodecode/pyenv/lib/python2.6/site-packages
# Check the install location
WSGIScriptAlias / /home/web/rhodecode/dispatch.wsgi
WSGIPassAuthorization On
  # user=www-data group=www-data # Enable if running Apache as root

Note

Do not set processes=num in this configuration file. Running |RCE| in multiprocess mode with Apache is not supported.

The following is an example wsgi dispatch script.

import os
os.environ["HGENCODING"] = "UTF-8"
os.environ['PYTHON_EGG_CACHE'] = '/home/web/rhodecode/.egg-cache'

# Set the current dir
os.chdir('/home/web/rhodecode/')

import site
site.addsitedir("/home/web/rhodecode/pyenv/lib/python2.6/site-packages")

from paste.deploy import loadapp
from paste.script.util.logging_config import fileConfig

fileConfig('/home/web/rhodecode/production.ini')
application = loadapp('config:/home/web/rhodecode/production.ini')

Note

When using mod_wsgi the same version of |hg| must be running in your system's |PY| environment and on |RCM|. To check the |RCM| version, on the interface go to :menuselection:`Admin --> Settings --> System Info`