Pridano nastaveni pro uWSGI na gimlim.
This commit is contained in:
parent
71d0c99c75
commit
f6a6bdd715
3 changed files with 20 additions and 4 deletions
|
@ -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
Normal file
14
mamweb_prod.ini
Normal file
|
@ -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
|
||||||
|
|
|
@ -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…
Reference in a new issue