Only install production Theo app if so configured

This commit is contained in:
Lance Edgar 2020-09-26 15:18:51 -05:00
parent c707e2261c
commit 232d8c4613
2 changed files with 6 additions and 1 deletions

View file

@ -34,6 +34,10 @@ env.theo_mirror_posdb = None
#env.theo_mirror_posdb = 'mysql'
#env.theo_mirror_posdb = 'postgresql'
# should we install a 'production' Theo app?
# (note that the 'stage' app is always installed)
env.theo_install_production = False
# default admin user credentials for Theo web app
env.theo_admin_username = 'username'
env.theo_admin_password = 'password'

View file

@ -27,6 +27,7 @@ def bootstrap_all(c):
Bootstrap all aspects of the machine
"""
bootstrap_base(c)
if env.theo_install_production:
bootstrap_theo(c)
bootstrap_theo_stage(c)