Add logs commands to access app logs via dokku client#28
Open
jimeh wants to merge 10 commits intosehrope:masterfrom
Open
Add logs commands to access app logs via dokku client#28jimeh wants to merge 10 commits intosehrope:masterfrom
jimeh wants to merge 10 commits intosehrope:masterfrom
Conversation
Not sure if there's a better way to do this, but it works for now.
This allows you to see app specific logs via the "logs:app" command, as the regular "logs" command just shows you the STDOUT from supervisord. Additionally supervisord's log level has been reverted from debug back to info, as app STDOUT is accessible via "logs:app" command.
Additionally print a warning message when there are no log files to tail, rather than tail itself complaining about stdin.
|
+1 |
|
+1 here too, need any help with this? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As the bulit-in
dokku logscommand only shows the output of supervisord itself, I created a few extralogs:*commands to enable accessing various app/process logs.Additionally I had a bunch of random cleanup/reorg changes laying around from when I was bored that I threw in. No offense taken if you don't like my cleanup bullshit, and if so I can create a new PR with just the changes required for the logs commands :)