def deploy(release = True): '''Deploy site to the server''' if release: env.site_username = utils.prompt('site username: '******'site password: ') from static import server_types setup(release) if release: utils.install_environ(release) server = server_types[env.server_type] server.install(release) if release: utils.create_deploy() # call functions in after deploy hook for hook in utils.after_deploy_hook: hook() #.reboot() if not release: return server.result
def setup(release = True): '''Install the site and requirements on server ''' upload(release) if release: utils.install_environ(True)