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 +4 -4
- data/README.md +40 -22
- data/lib/dokku_cli.rb +2 -2
- data/lib/dokku_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19502a84c77fe20265dc04355c8e6024b84cc2a9
|
4
|
+
data.tar.gz: 15d156a8e4376b9fc7b403d27f340a1eea0b07a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
59
|
-
dokku
|
60
|
-
dokku
|
61
|
-
dokku
|
62
|
-
dokku config
|
63
|
-
dokku
|
64
|
-
dokku
|
65
|
-
dokku
|
66
|
-
dokku
|
67
|
-
dokku
|
68
|
-
dokku
|
69
|
-
dokku
|
70
|
-
dokku
|
71
|
-
dokku
|
72
|
-
dokku
|
73
|
-
dokku
|
74
|
-
dokku
|
75
|
-
dokku
|
76
|
-
dokku
|
77
|
-
dokku
|
78
|
-
dokku
|
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 "
|
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 "
|
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
|
data/lib/dokku_cli/version.rb
CHANGED