mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 17:24:41 +00:00
[fix] bench setup reload-nginx
This commit is contained in:
parent
602d652d30
commit
91de45adf4
@ -155,6 +155,7 @@ def sync_domains(domains, site=None):
|
|||||||
|
|
||||||
setup.add_command(setup_sudoers)
|
setup.add_command(setup_sudoers)
|
||||||
setup.add_command(setup_nginx)
|
setup.add_command(setup_nginx)
|
||||||
|
setup.add_command(reload_nginx)
|
||||||
setup.add_command(setup_supervisor)
|
setup.add_command(setup_supervisor)
|
||||||
setup.add_command(setup_redis)
|
setup.add_command(setup_redis)
|
||||||
setup.add_command(setup_letsencrypt)
|
setup.add_command(setup_letsencrypt)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from bench.utils import get_program, exec_cmd, get_cmd_output, fix_prod_setup_perms, get_bench_name
|
from bench.utils import get_program, exec_cmd, get_cmd_output, fix_prod_setup_perms, get_bench_name, find_executable
|
||||||
from bench.config.supervisor import generate_supervisor_config
|
from bench.config.supervisor import generate_supervisor_config
|
||||||
from bench.config.nginx import make_nginx_conf
|
from bench.config.nginx import make_nginx_conf
|
||||||
import os
|
import os
|
||||||
@ -99,5 +99,5 @@ def update_supervisor():
|
|||||||
exec_cmd('sudo supervisorctl update')
|
exec_cmd('sudo supervisorctl update')
|
||||||
|
|
||||||
def reload_nginx():
|
def reload_nginx():
|
||||||
exec_cmd(['sudo', 'nginx', '-t'])
|
exec_cmd(['sudo', find_executable('nginx'), '-t'])
|
||||||
service('nginx', 'reload')
|
service('nginx', 'reload')
|
||||||
|
Loading…
Reference in New Issue
Block a user