Compare commits
3 Commits
master
...
deploy/awi
Author | SHA1 | Date | |
---|---|---|---|
5765391cd0 | |||
3947477341 | |||
10d46b3ec6 |
14
avalon/avalon/local_settings.py
Normal file
14
avalon/avalon/local_settings.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
from .settings import *
|
||||||
|
|
||||||
|
ALLOWED_HOSTS = [ u'avalon.aweirdimagination.net' ]
|
||||||
|
|
||||||
|
DATABASES = {
|
||||||
|
'default': {
|
||||||
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
|
'NAME': 'avalon',
|
||||||
|
'USER': 'avalon',
|
||||||
|
'ATOMIC_REQUESTS': True,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
STATIC_URL = '/static/'
|
|
@ -10,7 +10,10 @@ from django.shortcuts import get_object_or_404, redirect, render
|
||||||
from django.views.decorators.http import require_safe,\
|
from django.views.decorators.http import require_safe,\
|
||||||
require_POST,\
|
require_POST,\
|
||||||
require_http_methods
|
require_http_methods
|
||||||
from django.urls import reverse
|
try:
|
||||||
|
from django.urls import reverse
|
||||||
|
except ImportError:
|
||||||
|
from django.core.urlresolvers import reverse
|
||||||
|
|
||||||
from .forms import NewGameForm, JoinGameForm, StartGameForm
|
from .forms import NewGameForm, JoinGameForm, StartGameForm
|
||||||
from .helpers import mission_size, mission_size_string
|
from .helpers import mission_size, mission_size_string
|
||||||
|
|
12
uwsgi.ini
Normal file
12
uwsgi.ini
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[uwsgi]
|
||||||
|
socket=127.0.0.1:8042
|
||||||
|
chdir=/home/anyoneeb/sites/apps/avalon/avalon-django/avalon
|
||||||
|
plugin=python3
|
||||||
|
module=avalon.wsgi:application
|
||||||
|
env=DJANGO_SETTINGS_MODULE=avalon.local_settings
|
||||||
|
master=True
|
||||||
|
pidfile=/tmp/avalon-master.pid
|
||||||
|
vacuum=True
|
||||||
|
max-requests=5000
|
||||||
|
uid=avalon
|
||||||
|
gid=avalon
|
Loading…
Reference in New Issue
Block a user