deploy-zulip-from-git: Move migrations/puppet skipping options to config.

This commit is contained in:
Tim Abbott
2016-07-30 17:56:30 -07:00
parent 35cd0e122e
commit a12909d0d3

View File

@@ -16,6 +16,10 @@ try:
git_url = config_file.get('deployment', 'git_repo_url')
except (configparser.NoSectionError, configparser.NoOptionError):
git_url = "https://github.com/zulip/zulip.git"
try:
deploy_options = config_file.get('deployment', 'deploy_options').strip().split()
except (configparser.NoSectionError, configparser.NoOptionError):
deploy_options = []
os.environ["PYTHONUNBUFFERED"] = "y"
@@ -73,7 +77,7 @@ try:
os.path.join(deploy_path, "static/images/logo")])
subprocess.check_call(["sudo", os.path.join(deploy_path, "scripts", "lib", "upgrade-zulip-stage-2"),
deploy_path, "--skip-migrations", "--skip-puppet", "--from-git"])
deploy_path, "--from-git"] + deploy_options)
logging.info("Deployment complete")
subprocess.check_call(["./scripts/purge-old-deployments"])