def deploy(remote='origin'): """ Deploy the latest app to S3 and, if configured, to our servers. """ require('settings', provided_by=[production, staging]) photo.get_photo_csv() photo.parse_photo_csv() if app_config.DEPLOY_TO_SERVERS: require('branch', provided_by=[stable, master, branch]) if (app_config.DEPLOYMENT_TARGET == 'production' and env.branch != 'stable'): _confirm("You are trying to deploy the '%s' branch to production.\nYou should really only deploy a stable branch.\nDo you know what you're doing?" % env.branch) if app_config.DEPLOY_TO_SERVERS: checkout_latest(remote) if app_config.DEPLOY_CRONTAB: install_crontab() if app_config.DEPLOY_SERVICES: deploy_confs() render() _gzip('www', '.gzip') _deploy_to_s3()
def deploy_photo(): """ Deploy instagram photos. """ require('settings', provided_by=[production, staging]) photo.get_photo_csv() photo.parse_photo_csv() _gzip('www', '.gzip') _deploy_to_s3()