Skip to content

Commit

Permalink
Merge pull request #88 from open-austin/mrollins/fixsettings
Browse files Browse the repository at this point in the history
17: got final production settings working
  • Loading branch information
lazarus1331 authored Aug 17, 2018
2 parents 662b2b2 + 821e222 commit 83eb0f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
# ------------------------------------------------------------------------------
# Hosts/domain names that are valid for this site
# See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS', default=['influencetx.com', 'app.influencetx.com', 'app.influencetexas.com'])
ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS', default=['.influencetx.com', '.influencetexas.com'])
# END SITE CONFIGURATION

INSTALLED_APPS += ['gunicorn', ]
Expand Down Expand Up @@ -100,7 +100,7 @@
# Static Assets
# ------------------------
#STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATIC_URL = 'http://media.influencetx.com/static/'
STATIC_URL = 'https://media.influencetx.com/static/'


# EMAIL
Expand Down
2 changes: 1 addition & 1 deletion src/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
context: .
image: inftxos:0.1.85
environment:
- DATABASE_URL=psql://postgres:mysecretpassword@localhost:5432/influencetx
- DATABASE_URL=${DATABASE_URL}
- OPENSTATES_API_KEY=${OPENSTATES_API_KEY}
- TPJ_DB_USER=${TPJ_DB_USER}
- TPJ_DB_PASSWORD=${TPJ_DB_PASSWORD}
Expand Down
2 changes: 1 addition & 1 deletion src/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.production')

try:
from django.core.management import execute_from_command_line
Expand Down

0 comments on commit 83eb0f9

Please sign in to comment.