Fix bug.
This commit is contained in:
parent
22eec5ccd9
commit
f95e94fdfb
|
@ -16,6 +16,7 @@ namespace :create_site do
|
||||||
exec_command_by_user(ssh,cmd)
|
exec_command_by_user(ssh,cmd)
|
||||||
exec_ssh_command_by_sudo(ssh,"service nginx restart")
|
exec_ssh_command_by_sudo(ssh,"service nginx restart")
|
||||||
end
|
end
|
||||||
|
site_construct.update(:domain_name=>args.server_name)
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
puts [e,e.backtrace]
|
puts [e,e.backtrace]
|
||||||
|
|
Loading…
Reference in New Issue