This commit is contained in:
BoHung Chiu 2021-02-18 22:02:52 +08:00
parent 1588f93989
commit ee1cfa66c9
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ namespace :create_site do
exec_ssh_command_by_sudo_for_create(ssh,"touch /etc/nginx/orbit_sites/#{args.site_name}")
exec_ssh_command_by_sudo_for_create(ssh,"sh -c \"echo '#{nginx_setting_texts}' > /etc/nginx/orbit_sites/#{args.site_name}\"")
update_infos("restarting nginx")
exec_ssh_command_by_sudo_for_create(ssh,"service nginx restart")
exec_ssh_command_by_sudo_for_create(ssh,"sudo -p 'sudo password:' service nginx restart")
update_infos("finish restarting nginx")
exec_ssh_command_by_sudo_for_create(ssh,"mkdir -p #{args.path}")
update_infos("cloning orbit4-5 from #{args.git_url} to #{args.path}/#{args.site_name}")