Make silent.conf when deploying corporal

This commit is contained in:
Lance Edgar 2023-05-01 22:55:12 -05:00
parent f0fe630b60
commit 96276b3f55

View file

@ -116,6 +116,9 @@ def bootstrap_corporal_app(c, env, envname='corporal', user='rattail',
if not exists(c, '{}/quiet.conf'.format(appdir)): if not exists(c, '{}/quiet.conf'.format(appdir)):
c.sudo("bash -lc 'workon {} && cdvirtualenv app && rattail make-config -T quiet'".format(envname), c.sudo("bash -lc 'workon {} && cdvirtualenv app && rattail make-config -T quiet'".format(envname),
user=user) user=user)
if not exists(c, '{}/silent.conf'.format(appdir)):
c.sudo("bash -lc 'workon {} && cdvirtualenv app && rattail make-config -T silent'".format(envname),
user=user)
deploy_common(c, 'corporal/cron.conf.mako', '{}/cron.conf'.format(appdir), deploy_common(c, 'corporal/cron.conf.mako', '{}/cron.conf'.format(appdir),
use_sudo=True, owner=user, context={'envdir': envdir}) use_sudo=True, owner=user, context={'envdir': envdir})
deploy_common(c, 'corporal/web.conf.mako', '{}/web.conf'.format(appdir), deploy_common(c, 'corporal/web.conf.mako', '{}/web.conf'.format(appdir),