Don't run syncdb or migrate until after install

The syncdb and migrate execs need an upgraded Askbot package
installed in the venv before they're run, so indicate this
dependency relationship accordingly.

Change-Id: Ibf191682e238fcf5dcebc5a5c2c50d8b63913153
This commit is contained in:
Jeremy Stanley 2017-01-04 16:35:20 +00:00
parent bf2ac102e2
commit 9201b62276
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ class askbot::install (
cwd => "${dist_root}/askbot",
command => '/usr/askbot-env/bin/pip install .',
logoutput => on_failure,
before => [Exec['askbot-syncdb'], Exec['askbot-migrate'] ],
subscribe => Git['askbot'],
refreshonly => true,
require => Exec[ 'pip-requirements-install'],