mirror of
https://github.com/frappe/bench.git
synced 2024-11-14 09:14:04 +00:00
Merge pull request #1161 from NagariaHussain/depr-set-default-site
chore: Remove `set-default-site` command
This commit is contained in:
commit
9435af4d6c
@ -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,
|
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,
|
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)
|
generate_command_cache, clear_command_cache)
|
||||||
bench_command.add_command(start)
|
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_cache_host)
|
||||||
bench_command.add_command(set_redis_queue_host)
|
bench_command.add_command(set_redis_queue_host)
|
||||||
bench_command.add_command(set_redis_socketio_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(download_translations)
|
||||||
bench_command.add_command(backup_site)
|
bench_command.add_command(backup_site)
|
||||||
bench_command.add_command(backup_all_sites)
|
bench_command.add_command(backup_all_sites)
|
||||||
|
@ -98,12 +98,6 @@ def set_redis_socketio_host(host):
|
|||||||
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")
|
@click.command('download-translations', help="Download latest translations")
|
||||||
def download_translations():
|
def download_translations():
|
||||||
|
@ -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-cache-host**: Set Redis cache host for bench
|
||||||
- **set-redis-queue-host**: Set Redis queue host for bench
|
- **set-redis-queue-host**: Set Redis queue host for bench
|
||||||
- **set-redis-socketio-host**: Set Redis socketio 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
|
- **download-translations**: Download latest translations
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user