Browse Source

Pridano nastaveni pro uWSGI na gimlim.

remotes/origin/master
parent
commit
f6a6bdd715
  1. 7
      mamweb/settings_prod.py
  2. 14
      mamweb_prod.ini
  3. 3
      requirements.txt

7
mamweb/settings_prod.py

@ -27,7 +27,8 @@ DEBUG = False
TEMPLATE_DEBUG = False TEMPLATE_DEBUG = False
ALLOWED_HOSTS = ['mam.mff.cuni.cz', 'www.mam.mff.cuni.cz', 'atrey.karlin.mff.cuni.cz'] ALLOWED_HOSTS = ['mam.mff.cuni.cz', 'www.mam.mff.cuni.cz', 'atrey.karlin.mff.cuni.cz',
'mamweb.bezva.org','gimli.ms.mff.cuni.cz']
# Database # Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
@ -35,8 +36,8 @@ ALLOWED_HOSTS = ['mam.mff.cuni.cz', 'www.mam.mff.cuni.cz', 'atrey.karlin.mff.cun
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', 'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'mam-prod', 'NAME': 'mam_prod',
'USER': 'mam', 'USER': 'mam-web',
'TEST': { 'TEST': {
'NAME': 'mam-prod-testdb', 'NAME': 'mam-prod-testdb',
}, },

14
mamweb_prod.ini

@ -0,0 +1,14 @@
[uwsgi]
socket = /tmp/uwsgi-mamweb_prod.sock
logto = /akce/mam/www/mamweb_prod.log
chdir = /akce/mam/www/mamweb-prod/
home = /akce/mam/www/mamweb-prod/
module = mamweb.wsgi
plugin = python
master = True
vacuum = True
chmod-socket = 666
max-requests = 5000
die-on-term=true

3
requirements.txt

@ -9,7 +9,6 @@ six==1.10.0
pexpect==4.0.1 pexpect==4.0.1
traitlets==4.0.0 traitlets==4.0.0
Unidecode==0.4.19 Unidecode==0.4.19
flake8==3.0.4
# Django and modules # Django and modules
@ -48,3 +47,5 @@ Werkzeug==0.11.3
# requests # requests
# requests-oauthlib # requests-oauthlib
# uWSGI
uWSGI==2.0.17.1

Loading…
Cancel
Save