Alembic needs to know the right staging db uri.
This commit is contained in:
parent
a54bff964f
commit
d1e5dffd4f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue