dokku-cli 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66b111f35ffd639674af09b02f89b0b37a3d0604
4
- data.tar.gz: 158a398dce6993965e22f10f13cf1c4acf456654
3
+ metadata.gz: 19502a84c77fe20265dc04355c8e6024b84cc2a9
4
+ data.tar.gz: 15d156a8e4376b9fc7b403d27f340a1eea0b07a5
5
5
  SHA512:
6
- metadata.gz: 3157441fdbb7b1a22a31d83714948ec8375e9da6f7e886c643c1f437f90e70a70a1eddad5a9e6cb34467b95d318c4c8addf0a26ab3678df5a48bd0c4b3ce3a71
7
- data.tar.gz: 2e40868e620eb52b66f9f03cfe6717e736eecf63171e4df632b891758c555493188aab2c3d1ed795b44884da67e70a1f7d6b535513da1442062c4c94d6b15cae
6
+ metadata.gz: 679283f4eb9c4f27db3dfcb5222a58e958e7e84a88563745a0bdb1730bfb65481bad04dc550113ef6efecbf8c0cdb2153ae242dbda32326a22d33c9107f5131d
7
+ data.tar.gz: 3c25853d3377f92b0cf63033d95aa21da370012da127b60dbecd4427d9c0e81872788dc715f85a652ee5c00b5efb27233a83c04d617cb4fccd9106305731d618
data/README.md CHANGED
@@ -42,6 +42,11 @@ dokku ps:restart # Restart the app container
42
42
  dokku ps:start # Start the app container
43
43
  ```
44
44
 
45
+ ## Add SSH key
46
+ ```
47
+ dokku keys:add .ssh/id_rsa.pub Description
48
+ ```
49
+
45
50
  ## Multiple Remote Apps/Servers (e.g. Staging)
46
51
 
47
52
  You can use the global option ``--remote`` to run commands on a different server/app from a remote branch. For more details see [heroku's guide](https://devcenter.heroku.com/articles/multiple-environments) for multiple environments for an app.
@@ -55,28 +60,41 @@ dokku run rails c --remote staging
55
60
  ```
56
61
  $ dokku help
57
62
  Commands:
58
- dokku config # Display the app's environment variables
59
- dokku config:get KEY # Display an environment variable value
60
- dokku config:set KEY1=VALUE1 [KEY2=VALUE2 ...] # Set one or more environment variables
61
- dokku config:set:file <path/to/file> # Set one or more environment variables from file
62
- dokku config:unset KEY1 [KEY2 ...] # Unset one or more environment variables
63
- dokku domains # List custom domains for the app
64
- dokku domains:add DOMAIN # Add a custom domain to the app
65
- dokku domains:clear # Clear all custom domains for app
66
- dokku domains:remove DOMAIN # Remove a custom domain from the app
67
- dokku help [COMMAND] # Describe available commands or one specific command
68
- dokku logs [-t] # Display logs for the app (-t follows)
69
- dokku nginx:build # (Re)builds nginx config for the app
70
- dokku open # Open the app in your default browser
71
- dokku ps # List processes running in app container(s)
72
- dokku ps:rebuild # Rebuild the app
73
- dokku ps:restart # Restart the app container
74
- dokku ps:start # Start the app container
75
- dokku run <cmd> # Run a one-off command in the environment of the app
76
- dokku ssh # Start an SSH session as root user
77
- dokku url # Show the first URL for the app
78
- dokku urls # Show all URLs for the app
79
-
63
+ dokku certs:add CRT KEY # Add an ssl endpoint to an app. Can also import from a tarball on stdin.
64
+ dokku certs:generate DOMAIN # Generate a key and certificate signing request (and self-signed certificate)
65
+ dokku certs:info # Show certificate information for an ssl endpoint.
66
+ dokku certs:update CRT KEY # Update an SSL Endpoint on an app. Can also import from a tarball on stdin
67
+ dokku config # Display the app's environment variables
68
+ dokku config:get KEY # Display an environment variable value
69
+ dokku config:set KEY1=VALUE1 [KEY2=VALUE2 ...] # Set one or more environment variables
70
+ dokku config:set:file path/to/file # Set one or more environment variables from file
71
+ dokku config:unset KEY1 [KEY2 ...] # Unset one or more environment variables
72
+ dokku domains # List custom domains for the app
73
+ dokku domains:add DOMAIN # Add a custom domain to the app
74
+ dokku domains:clear # Clear all custom domains for app
75
+ dokku domains:remove DOMAIN # Remove a custom domain from the app
76
+ dokku events # Show the last events (-t follows)
77
+ dokku events:list # List logged events
78
+ dokku events:off # Disable events logger
79
+ dokku events:on # Enable events logger
80
+ dokku help [COMMAND] # Describe available commands or one specific command
81
+ dokku keys:add PATH DESCRIPTION # Add the ssh key to your dokku machine.
82
+ dokku logs [-n num] [-p ps] [-q quiet [-t tail] # Display logs for the app
83
+ dokku nginx:access-logs # Show the nginx access logs for an application
84
+ dokku nginx:build # (Re)builds nginx config for the app
85
+ dokku nginx:error-logs # Show the nginx access logs for an application
86
+ dokku open # Open the app in your default browser
87
+ dokku ps # List processes running in app container(s)
88
+ dokku ps:rebuild # Rebuild the app
89
+ dokku ps:restart # Restart the app container
90
+ dokku ps:start # Start the app container
91
+ dokku run <cmd> # Run a one-off command in the environment of the app
92
+ dokku ssh # Start an SSH session as root user
93
+ dokku url # Show the first URL for the app
94
+ dokku urls # Show all URLs for the app
95
+
96
+ Options:
97
+ [--remote=REMOTE]
80
98
  ```
81
99
 
82
100
  ## Contributing
data/lib/dokku_cli.rb CHANGED
@@ -108,11 +108,11 @@ module DokkuCli
108
108
  config_file = File.read(config_path)
109
109
 
110
110
  # Default dokku config: dokku@host.com:app
111
- default_style_regex = /\[remote "dokku"\]\s+url \= dokku@(?<domain>.*):(?<app_name>.*)$/
111
+ default_style_regex = /\[remote "#{remote}"\]\s+url \= dokku@(?<domain>.*):(?<app_name>.*)$/
112
112
  match ||= config_file.match(default_style_regex)
113
113
 
114
114
  # SSH dokku config: ssh://dokku@host.com:1337/app
115
- ssh_style_regex = /\[remote "dokku"\]\s+url \= ssh:\/\/dokku@(?<domain>.*):(?<port>.*)\/(?<app_name>.*)$/
115
+ ssh_style_regex = /\[remote "#{remote}"\]\s+url \= ssh:\/\/dokku@(?<domain>.*):(?<port>.*)\/(?<app_name>.*)$/
116
116
  match ||= config_file.match(ssh_style_regex)
117
117
 
118
118
  exit unless match
@@ -1,3 +1,3 @@
1
1
  module DokkuCli
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dokku-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Szturo