2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

remove staging preparation and upadation at release

This commit is contained in:
Saurabh 2018-04-06 17:53:33 +05:30
parent 63047730c5
commit 9a0224758b
3 changed files with 1 additions and 13 deletions

View File

@ -48,7 +48,7 @@ bench_command.add_command(switch_to_develop)
from bench.commands.utils import (start, restart, set_nginx_port, set_ssl_certificate, set_ssl_certificate_key, set_url_root,
set_mariadb_host, set_default_site, download_translations, shell, backup_site, backup_all_sites, release, renew_lets_encrypt,
disable_production, bench_src, prepare_staging)
disable_production, bench_src)
bench_command.add_command(start)
bench_command.add_command(restart)
bench_command.add_command(set_nginx_port)
@ -62,7 +62,6 @@ bench_command.add_command(shell)
bench_command.add_command(backup_site)
bench_command.add_command(backup_all_sites)
bench_command.add_command(release)
bench_command.add_command(prepare_staging)
bench_command.add_command(renew_lets_encrypt)
bench_command.add_command(disable_production)
bench_command.add_command(bench_src)

View File

@ -130,14 +130,6 @@ def release(app, bump_type, from_branch, to_branch, owner, repo_name, remote):
release(bench_path='.', app=app, bump_type=bump_type, from_branch=from_branch, to_branch=to_branch,
remote=remote, owner=owner, repo_name=repo_name)
@click.command('prepare-staging')
@click.argument('app')
def prepare_staging(app):
"""Prepare staging branch from develop branch"""
from bench.prepare_staging import prepare_staging
prepare_staging(bench_path='.', app=app)
@click.command('disable-production')
def disable_production():
"""Disables production environment for the bench."""

View File

@ -31,9 +31,6 @@ def release(bench_path, app, bump_type, from_branch='develop', to_branch='master
print('bench not configured to release')
sys.exit(1)
if config.get('branches_to_update'):
branches_to_update.update(config.get('branches_to_update'))
validate(bench_path, config)
bump(bench_path, app, bump_type, from_branch=from_branch, to_branch=to_branch, owner=owner,