From 232d8c4613e33ca03616a94151d87a989a34409a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 26 Sep 2020 15:18:51 -0500 Subject: [PATCH] Only install production Theo app if so configured --- machines/theo-server/fabenv.py.dist | 4 ++++ machines/theo-server/fabfile.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/machines/theo-server/fabenv.py.dist b/machines/theo-server/fabenv.py.dist index 6c7ab0b..8f37552 100644 --- a/machines/theo-server/fabenv.py.dist +++ b/machines/theo-server/fabenv.py.dist @@ -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' diff --git a/machines/theo-server/fabfile.py b/machines/theo-server/fabfile.py index d79cb3c..102a27c 100644 --- a/machines/theo-server/fabfile.py +++ b/machines/theo-server/fabfile.py @@ -27,7 +27,8 @@ def bootstrap_all(c): Bootstrap all aspects of the machine """ bootstrap_base(c) - bootstrap_theo(c) + if env.theo_install_production: + bootstrap_theo(c) bootstrap_theo_stage(c)