def prepare(): require('hosts') require('webapp_user') server.install_packages() server.create_webapp_user() webapp.prepare()
def setup(dbuser=None, dbpassword=None): require('hosts', provided_by=[vm, staging, production]) require('webapp_user') require('basedir') server.install_packages() server.create_webapp_user() postgres.install() try: pg.setup_postgis() except: pass setup_db() nginx.install() # supervisord install # webapp.prepare()