Alembic needs to know the right staging db uri.

This commit is contained in:
Ralph Bean 2017-08-17 17:47:11 +00:00
parent a54bff964f
commit d1e5dffd4f

View file

@ -9,7 +9,11 @@ script_location = /usr/share/datanommer.models/alembic/
# the 'revision' command, regardless of autogenerate
# revision_environment = false
{% if env == "production" %}
sqlalchemy.url = postgresql://{{ datanommerDBUser }}:{{ datanommerDBPassword }}@db-datanommer02/datanommer
{% else %}
sqlalchemy.url = postgresql://{{ datanommerDBUser }}:{{ datanommerDBPassword }}@db-datanommer.stg.phx2.fedoraproject.org/datanommer
{% endif %}
fedmsg_config_dir = /etc/fedmsg.d/
# Logging configuration