mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-14 06:42:17 +00:00
Base support for Heroku deployment.
This commit is contained in:
@@ -5,4 +5,3 @@ monkey.patch_all()
|
|||||||
|
|
||||||
bind = "127.0.0.1:3322"
|
bind = "127.0.0.1:3322"
|
||||||
workers = 8
|
workers = 8
|
||||||
#worker_class = "gunicorn.workers.ggevent.GeventWorker"
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import os
|
import os
|
||||||
|
import dj_database_url
|
||||||
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
|
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
|
||||||
|
|
||||||
DEBUG = True
|
DEBUG = os.environ.get('DJANGO_DEBUG', False)
|
||||||
TEMPLATE_DEBUG = DEBUG
|
TEMPLATE_DEBUG = DEBUG
|
||||||
|
|
||||||
ADMINS = (
|
ADMINS = (
|
||||||
@@ -11,10 +12,7 @@ ADMINS = (
|
|||||||
MANAGERS = ADMINS
|
MANAGERS = ADMINS
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': dj_database_url.config(default='sqlite:///%s' % os.path.join(os.path.dirname(__file__), '..', '..', 'db.sqlite3')),
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
|
||||||
'NAME': os.path.join(os.path.dirname(__file__), '..', '..', 'db.sqlite3'),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ALLOWED_HOSTS = [
|
ALLOWED_HOSTS = [
|
||||||
@@ -109,6 +107,7 @@ if DEBUG:
|
|||||||
|
|
||||||
ROOT_URLCONF = 'vapemap.urls'
|
ROOT_URLCONF = 'vapemap.urls'
|
||||||
WSGI_APPLICATION = 'vapemap.wsgi.application'
|
WSGI_APPLICATION = 'vapemap.wsgi.application'
|
||||||
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||||
|
|
||||||
LOGGING = {
|
LOGGING = {
|
||||||
'version': 1,
|
'version': 1,
|
||||||
@@ -137,7 +136,7 @@ LOGGING = {
|
|||||||
HAYSTACK_CONNECTIONS = {
|
HAYSTACK_CONNECTIONS = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
|
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
|
||||||
'URL': 'http://127.0.0.1:9200/',
|
'URL': os.environ.get('FOUNDELASTICSEARCH_URL', 'http://127.0.0.1:9200/'),
|
||||||
'INDEX_NAME': 'haystack',
|
'INDEX_NAME': 'vapemap-haystack',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -10,3 +10,8 @@ requests
|
|||||||
pyelasticsearch
|
pyelasticsearch
|
||||||
-e git+git://github.com/toastdriven/django-haystack.git@0e8bd20c18ce3133b3a4f285a4c420bb621ac49b#egg=django_haystack
|
-e git+git://github.com/toastdriven/django-haystack.git@0e8bd20c18ce3133b3a4f285a4c420bb621ac49b#egg=django_haystack
|
||||||
django-epiceditor
|
django-epiceditor
|
||||||
|
|
||||||
|
# Heroku
|
||||||
|
dj-database-url
|
||||||
|
gunicorn
|
||||||
|
psycopg2
|
||||||
Reference in New Issue
Block a user