Use /etc/bodhi/alembic.ini on production upgrades.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
6e6239051a
commit
959b34e8ae
1 changed files with 1 additions and 7 deletions
|
@ -90,17 +90,11 @@
|
||||||
- name: Stop the fedmsg-hub backend
|
- name: Stop the fedmsg-hub backend
|
||||||
service: name="fedmsg-hub" state=stopped
|
service: name="fedmsg-hub" state=stopped
|
||||||
|
|
||||||
- name: Upgrade the database
|
|
||||||
command: /usr/bin/alembic -c /usr/share/bodhi/alembic.ini upgrade head
|
|
||||||
args:
|
|
||||||
chdir: /usr/share/bodhi/
|
|
||||||
when: inventory_hostname.startswith(('bodhi-backend01.phx2',))
|
|
||||||
|
|
||||||
- name: Upgrade the database
|
- name: Upgrade the database
|
||||||
command: /usr/bin/alembic -c /etc/bodhi/alembic.ini upgrade head
|
command: /usr/bin/alembic -c /etc/bodhi/alembic.ini upgrade head
|
||||||
args:
|
args:
|
||||||
chdir: /usr/share/bodhi/
|
chdir: /usr/share/bodhi/
|
||||||
when: inventory_hostname.startswith(('bodhi-backend01.stg.phx2',))
|
when: inventory_hostname.startswith(('bodhi-backend01.phx2', 'bodhi-backend01.stg.phx2'))
|
||||||
|
|
||||||
- name: And... start the backend again
|
- name: And... start the backend again
|
||||||
service: name="fedmsg-hub" state=started
|
service: name="fedmsg-hub" state=started
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue