Browse Source

Troubleshooting deployment issues

pull/160/head
Mike Olund 8 years ago
parent
commit
7ca53355df
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      edivorce/settings/openshift.py
  2. +2
    -2
      wsgi.py

+ 2
- 2
edivorce/settings/openshift.py View File

@ -38,8 +38,8 @@ WEASYPRINT_URL = 'http://weasyprint:5001'
WEASYPRINT_CSS_LOOPBACK = 'http://edivorce-django:8080' WEASYPRINT_CSS_LOOPBACK = 'http://edivorce-django:8080'
# Django Compressor offline compression (triggered by setup.py during OpenShift build) # Django Compressor offline compression (triggered by setup.py during OpenShift build)
COMPRESS_ENABLED = True
COMPRESS_OFFLINE = True
COMPRESS_ENABLED = False
# COMPRESS_OFFLINE = True
# The app will be served out of a subdirectory of justice.gov.bc.ca # The app will be served out of a subdirectory of justice.gov.bc.ca
# PROD: /divorce # PROD: /divorce


+ 2
- 2
wsgi.py View File

@ -17,8 +17,8 @@ if not os.environ.get('OPENSHIFT_BUILD_NAMESPACE', False):
else: else:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "edivorce.settings.openshift") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "edivorce.settings.openshift")
# compress the static assets # compress the static assets
execute_from_command_line(['manage.py', 'compress', '--force'])
# execute_from_command_line(['manage.py', 'compress', '--force'])
# load the Question fixture # load the Question fixture
execute_from_command_line(['manage.py', 'loaddata', '/opt/app-root/src/edivorce/fixtures/Question.json'])
# execute_from_command_line(['manage.py', 'loaddata', '/opt/app-root/src/edivorce/fixtures/Question.json'])
application = get_wsgi_application() application = get_wsgi_application()

Loading…
Cancel
Save