Changeset - 51dc7a776e19
[Not reviewed]
Merge
0 8 9
Christopher Neugebauer - 7 years ago 2017-08-10 02:56:44
_@chrisjrn.com
Merge pull request #14 from northbaypython/chrisjrn/herokize

Makes the site run on Heroku
7 files changed with 55 insertions and 30 deletions:
0 comments (0 inline, 0 general)
Procfile
Show inline comments
 
web: gunicorn --bind=0.0.0.0 --log-file - pinaxcon.wsgi
 
web: gunicorn pinaxcon.wsgi --log-file - 
README.rst
Show inline comments
...
 
@@ -8,3 +8,5 @@ Setup
 

	
 
1. pip install -r requirements
 
Development
 
~~~~~~~~~~~
 
1. pip install -r requirements/base.txt
 
2. python manage.py createsuperuser
...
 
@@ -13,2 +15,6 @@ Setup
 

	
 
Prod
 
~~~~
 
Use `pip install -r requirements.txt` instead.
 

	
 
Reference Material
...
 
@@ -17,2 +23,2 @@ Reference Material
 
* Registrasion docs are at http://registrasion.readthedocs.io
 
* Symposion docs are at http://symposion.readthedocs.io
...
 
\ No newline at end of file
 
* Symposion docs are at http://symposion.readthedocs.io
pinaxcon/settings.py
Show inline comments
...
 
@@ -17,3 +17,8 @@ DATABASES = {
 

	
 
ALLOWED_HOSTS = []
 
# HEROKU: Update database configuration with $DATABASE_URL.
 
import dj_database_url
 
db_from_env = dj_database_url.config()
 
DATABASES['default'].update(db_from_env)
 

	
 
ALLOWED_HOSTS = ["localhost", ".herokuapp.com", ".northbaypython.org"]
 

	
...
 
@@ -218,7 +223,16 @@ FIXTURE_DIRS = [
 

	
 
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
 
# Heroku: Get email configuration from environment variables.
 

	
 
EMAIL_BACKEND = os.environ.get("DJANGO_EMAIL_BACKEND", "django.core.mail.backends.console.EmailBackend")  # noqa
 
EMAIL_HOST = os.environ.get("DJANGO_EMAIL_HOST", "")
 
EMAIL_PORT = int(os.environ.get("DJANGO_EMAIL_PORT", 25))
 
EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_HOST_USER", "")
 
EMAIL_HOST_PASSWORD = os.environ.get("DJANGO_EMAIL_HOST_PASSWORD", "")
 
EMAIL_USE_TLS = bool(os.environ.get("DJANGO_EMAIL_USE_TLS", False))
 
EMAIL_USE_SSL = bool(os.environ.get("DJANGO_EMAIL_USE_SSL", False))
 

	
 
ACCOUNT_OPEN_SIGNUP = True
 
# We need to explicitly switch on signups.
 
ACCOUNT_OPEN_SIGNUP = bool(os.environ.get("DJANGO_ACCOUNT_OPEN_SIGNUP", False))
 
ACCOUNT_EMAIL_UNIQUE = True
 
ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = False
 
ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = False if DEBUG else True
 
ACCOUNT_LOGIN_REDIRECT_URL = "home"
requirements.txt
Show inline comments
 
Django==1.9.2
 
pinax-theme-bootstrap==7.3.0
 
django-user-accounts==1.3.1
 
metron==1.3.7
 
pinax-eventlog==1.1.1
 
dj-static==0.0.6
 
dj-database-url==0.4.0
 
pinax-pages==0.4.2
 
pinax-boxes==2.1.2
 
django-libsass==0.7
 
django-markdown-deux==1.0.5
 

	
 

	
 

	
 
# For testing
 
django-nose==1.4.3
 
coverage==4.0.3
 

	
 
# Registrasion
 
https://github.com/chrisjrn/registrasion/tarball/master#egg=registrasion
 
https://github.com/pinax/symposion/tarball/ad81810#egg=symposion
 
https://github.com/chrisjrn/registrasion-stripe/tarball/master#egg=registrasion-stripe
 
https://github.com/chrisjrn/symposion-bootstrap-templates/tarball/master#egg=symposion-bootstrap-templates
 
-r requirements/base.txt
 
-r requirements/heroku.txt
requirements/base.txt
Show inline comments
 
new file 100644
 
Django==1.9.2
 
pinax-theme-bootstrap==7.3.0
 
django-user-accounts==1.3.1
 
metron==1.3.7
 
pinax-eventlog==1.1.1
 
dj-static==0.0.6
 
dj-database-url==0.4.0
 
pinax-pages==0.4.2
 
pinax-boxes==2.1.2
 
django-libsass==0.7
 
django-markdown-deux==1.0.5
 

	
 

	
 

	
 
# For testing
 
django-nose==1.4.3
 
coverage==4.0.3
 

	
 
# Registrasion
 
https://github.com/chrisjrn/registrasion/tarball/master#egg=registrasion
 
https://github.com/pinax/symposion/tarball/ad81810#egg=symposion
 
https://github.com/chrisjrn/registrasion-stripe/tarball/master#egg=registrasion-stripe
 
https://github.com/chrisjrn/symposion-bootstrap-templates/tarball/master#egg=symposion-bootstrap-templates
requirements/heroku.txt
Show inline comments
 
new file 100644
 
psycopg2==2.7.3
 
gunicorn==19.7.1
runtime.txt
Show inline comments
 
new file 100644
 
python-2.7.13
0 comments (0 inline, 0 general)