sebastianszturo / dokku-cli Goto Github PK
View Code? Open in Web Editor NEWMakes your Dokku even more Heroku
License: MIT License
Makes your Dokku even more Heroku
License: MIT License
Hey,
Thanks for the awesome CLI, I have just started using it and I'm in love with it! ๐
Now coming to the problem, when I run dokku logs, they get stuck in between. Eg:
2017-03-19T16:47:40.391114662Z app[web.1]: 2017-03-19 16:47:40,390 [http-nio-5000-exec-7] INFO filters.ApplicationFilters - GrailsAccessLog at Sun Mar 19 16:47:40 UTC 2017: [controller:abc, format:null]
2017-03-19T16:47:40.748989002Z app[web.1]: 2017-03-19 16:47:40,748 [http-nio-5000-exec-9] INFO filters.ApplicationFilters - GrailsAccessLog at Sun Mar 19 16
I saw the command that you log
Running ssh -p 22 dokku@host logs test-dokku-grails -t true...
and added -t to it based on this issue dokku/dokku#1533 and it worked!
ie:
ssh -p 22 -t dokku@host -t logs test-dokku-grails -t
works better than
ssh -p 22 dokku@host -t logs test-dokku-grails -t
Can you add this to the log command?
dokku command app
I'd love to see support for commands like dokku ps:scale web=2
.
Hey,
I'm trying to use the --remote
option of dokku-cli, but can't seem to understand how it works.
Is it supposed to be an option to force the git remote name (instead of using the default dokku
)?
In my local git repo (published to my dokku server), I tried:
dokku --remote=dev config
Output is:
Usage:
dokku config
Options:
[--remote=REMOTE]
Display the app's environment variables
And nothing happens (no output) if I try:
dokku config --remote=dev
My local git remote is
git remote -v
dev ssh://[email protected]:2000/my-app (fetch)
dev ssh://[email protected]:2000/my-app (push)
And when logging directly on my dokku box:
dokku config my-app
=====> my-app config vars
DOKKU_APP_RESTORE: 1
DOKKU_DOCKERFILE_PORT: 5000
DOKKU_NGINX_PORT: 80
I use ssh on 2202 on my dokku server but dokku-cli doesn't allow me to change the port. would be nice to have a way to set configure this. So I have to change the port every time i want to deploy a new container.
There are a bunch of new commands that need to get added to dokku-cli:
Certs: http://progrium.viewdocs.io/dokku/deployment/ssl-configuration/
Events: http://progrium.viewdocs.io/dokku/dokku-events-logs/
Options: http://progrium.viewdocs.io/dokku/docker-options/
Feel free to submit pull-request!
dokku domains:add test --remote=beta
/Library/Ruby/Gems/2.0.0/gems/dokku-cli-0.2.0/lib/dokku_cli/domains.rb:10:in domains_add': wrong number of arguments (2 for 1) (ArgumentError) from /Library/Ruby/Gems/2.0.0/gems/dokku-cli-0.2.0/lib/dokku_cli.rb:67:in
method_missing'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:29:in run' from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:126:in
run'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in
dispatch'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in start' from /Library/Ruby/Gems/2.0.0/gems/dokku-cli-0.2.0/bin/dokku:5:in
<top (required)>'
from /usr/bin/dokku:23:in load' from /usr/bin/dokku:23:in
Make it easier to add keys to dokku server
cat /path/to/public_key | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
should be something like
cat /path/to/public_key | dokku keys:add
I was trying to add multiple remotes for my app following your instructions:
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 for multiple environments for an app.
dokku run rails c --remote=staging
dokku config --remote=staging
However the --remote option doesn't work for me.
I also noticed that in the heroku's guide they add remotes like this:
heroku create --remote staging
,
but dokku-cli doesn't seem to have this command. Any help?
E.g running dokku config:set SMTP_URI=srv-v3.example.com
doesn't work. The value won't get set.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.