Skip to content
Snippets Groups Projects
Verified Commit 1e6458e6 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/archweb: Check for remote host and apply the local_settings template accordingly

parent 5975631e
No related branches found
No related tags found
No related merge requests found
......@@ -15,9 +15,12 @@ DATABASES = {
'default': {
'ENGINE' : 'django.db.backends.postgresql_psycopg2',
'PORT' : 5432,
'NAME' : 'archweb',
'USER' : 'archweb',
'PASSWORD': '{{ archweb_db_password }}',
{% if archweb_db_host != 'localhost' %}
'HOST' : '{{ archweb_db_host }}',
{% endif %}
'NAME' : '{{ archweb_db }}',
'USER' : '{{ archweb_db_site_user }}',
'PASSWORD': '{{ archweb_db_site_password }}',
'OPTIONS' : {'autocommit': True, 'application_name': 'archweb'},
},
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment