Example #1
0
def prepare():
    require('hosts')
    require('webapp_user')

    server.install_packages()
    server.create_webapp_user()
    webapp.prepare()
Example #2
0
def prepare():
    require('hosts')
    require('webapp_user')

    server.install_packages()
    server.create_webapp_user()
    webapp.prepare()
Example #3
0
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()