lib/rmd/deploy_service.rb in rmdd-0.1.8 vs lib/rmd/deploy_service.rb in rmdd-0.1.9
- old
+ new
@@ -28,12 +28,12 @@
validate_type(type)
command = %{echo "tailf nginx/log/#{type}.log" | ssh #{nginx_url(server)}}
system_cmd(command)
end
- def self.console(server)
+ def self.bash(server)
validate(server)
- command = %{echo "cd #{NAME} && DOCKER_HOST=:2375 docker exec -it ringmd_new_web_1 rails c" | ssh #{master(server)} -p 2200 -t}
+ command = %{echo "DOCKER_HOST=:2375 docker exec -it ringmd_new_web_1 bash" | ssh -t #{master(server)} -p 2200}
system_cmd(command)
end
private