bin/dokku in dokku-installer-cli-0.0.9 vs bin/dokku in dokku-installer-cli-0.0.9.1
- old
+ new
@@ -133,27 +133,34 @@
else
run_command "run #{app_name} #{command}"
end
end
+ desc "ssh", "Start an SSH session as root user"
+ def ssh
+ command = "ssh root@#{domain}"
+ puts "Running #{command}..."
+ exec(command)
+ end
+
desc "ssl:certificate <file path>", "Add a signed certificate for SSL (server.crt)"
def ssl_certificate(*args)
file_path = args.first
file_contents = File.read(file_path)
- dokku_command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:certificate #{app_name}"
+ command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:certificate #{app_name}"
- puts "Running #{dokku_command}..."
- exec(dokku_command)
+ puts "Running #{command}..."
+ exec(command)
end
desc "ssl:key <file path>", "Add a private key for SSL (server.key)"
def ssl_key(*args)
file_path = args.first
file_contents = File.read(file_path)
- dokku_command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:key #{app_name}"
+ command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:key #{app_name}"
- puts "Running #{dokku_command}..."
- exec(dokku_command)
+ puts "Running #{command}..."
+ exec(command)
end
desc "url", "Show the URL for the application"
def url
puts "http://#{app_name}.#{domain}"