2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 08:16:28 +00:00

Merge pull request #1161 from NagariaHussain/depr-set-default-site

chore: Remove `set-default-site` command
This commit is contained in:
gavin 2021-04-27 11:59:32 +05:30 committed by GitHub
commit 9435af4d6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 9 deletions

View File

@ -35,7 +35,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, backup_site, backup_all_sites, release, renew_lets_encrypt,
set_mariadb_host, download_translations, backup_site, backup_all_sites, release, renew_lets_encrypt,
disable_production, bench_src, prepare_beta_release, set_redis_cache_host, set_redis_queue_host, set_redis_socketio_host, find_benches, migrate_env,
generate_command_cache, clear_command_cache)
bench_command.add_command(start)
@ -48,7 +48,6 @@ bench_command.add_command(set_mariadb_host)
bench_command.add_command(set_redis_cache_host)
bench_command.add_command(set_redis_queue_host)
bench_command.add_command(set_redis_socketio_host)
bench_command.add_command(set_default_site)
bench_command.add_command(download_translations)
bench_command.add_command(backup_site)
bench_command.add_command(backup_all_sites)

View File

@ -98,12 +98,6 @@ def set_redis_socketio_host(host):
set_redis_socketio_host(host)
@click.command('set-default-site', help="Set default site for bench")
@click.argument('site')
def set_default_site(site):
from bench.utils import set_default_site
set_default_site(site)
@click.command('download-translations', help="Download latest translations")
def download_translations():

View File

@ -101,7 +101,7 @@ These commands belong directly to the bench group so they can be invoked directl
- **set-redis-cache-host**: Set Redis cache host for bench
- **set-redis-queue-host**: Set Redis queue host for bench
- **set-redis-socketio-host**: Set Redis socketio host for bench
- **set-default-site**: Set default site for bench
- **use**: Set default site for bench
- **download-translations**: Download latest translations