-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the daemonize feature #378
Conversation
Looks good to me, any plan on release? Minor/major bump needed? |
@simi I could do a full 3.0 major bump for this, it's fine. One could argue for a minor bump since the de-facto drop of this feature was done when we began relying on a Puma 6 that had dropped it (I think in the Puma 6 major --daemonize was removed). (https://github.com/kigster/puma-daemon#41-using-config-file has good descriptions of what a daemonize solution could look like, now.) |
Awesome! 💯 |
lib/gemstash/cli/start.rb
Outdated
@cli.say("Starting gemstash!", :green) | ||
Puma::CLI.new(args, Gemstash::Logging::StreamLogger.puma_events).run | ||
end | ||
|
||
private | ||
|
||
def setup_logging | ||
return unless daemonize? | ||
|
||
# Enables logging at all times, perhaps there needs to be a new option for this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code comment is about "Does the CLI need an option like --run-in-foreground
to not redirect the log output into a file?"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this uses "logger in a signal handler"
Compare this comment, and see how it refers to a nice closure trick from Sidekiq:
resque/resque#1493 (comment)
By removing code which depended on the daemonize?
, I got the expected working behaviour.
07474ff
to
e938bdc
Compare
Fixes #359. Puma 6 no longer supports the --daemonize option. It is not something we wish to support inside Gemstash.
e938bdc
to
fc0e06b
Compare
This broke my prod.
Feature aside, I was using the (edit: I originally made a typo and said I was using |
@simi my understanding is not that I think we can agree that 4eac03937e83db6db6365ffdc1fd86b990b8ebf probably should have been a major version bump due to the behavior change. 20/20 hindsight, as they say. But are we really using that arguable mistake to justify putting more breakage in the same major release? |
Ahh, clear. a66162c#diff-1b2a427dbe98191af04a96ffbfe65d744487281f99dfc8bd6a21de087cb9de72L78-L79 I think we have missed by removing Do you think it is worth it to release new version adding back this option back in deprecated manner? |
I think that would probably be appreciated by other folks using this option. It gives them a chance to understand why these things were removed and update their usage without breaking them. I understand it's more work, of course, and to be clear I've fixed this on my end. Think about it! |
Clear, let us create the update. The idea behind this was |
Ohhhhhhh I totally missed that the inverse option was created automatically. That makes WAY more sense. That said, turning |
|
Ah, then I am mistaken indeed, and I understand where you're coming from now. Thank you for your patience! |
Thanks for you patience as well, let's release the |
Thank you @simi 🤗 |
Description:
This is a Pull Request which removes the
--daemonize
option, its documentation, and all related mentions.Puma no longer supports it. There are new, other ways to do that.
This closes #359 with a more-final change.
Perhaps this means that there we may need new ways of enabling a Puma::CommonLogger, of enabling non-stdout output (that is "setup_logger") in the Gemstash server.
Now, gemstash operates "in front, in the terminal it is started".
I will abide by the code of conduct.