Don't use a variable for the db hostnames and split prod vs stg
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
d948f9a516
commit
d258f888a1
1 changed files with 5 additions and 1 deletions
|
@ -6,7 +6,11 @@ import os
|
|||
SECRET_KEY='{{ elections_secret_key }}'
|
||||
|
||||
### url to the database server:
|
||||
DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@{{ elections_db_host }}/{{ elections_db_name }}'
|
||||
{% if env == 'staging' %}
|
||||
DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.stg.phx2.fedoraproject.org/{{ elections_db_name }}'
|
||||
{% else %}
|
||||
DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.phx2.fedoraproject.org/elections_db_name }}'
|
||||
{% endif %}
|
||||
|
||||
## One ore more FAS group that will have admin rights over the whole
|
||||
## application, including all elections past, present and future
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue