Skip to content
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

Log the configuration if an env variable is provided #2472

Merged
merged 1 commit into from Nov 2, 2020

Conversation

karloscodes
Copy link
Contributor

@karloscodes karloscodes commented Oct 29, 2020

Description

This PR adds support for printing the puma config if an env variable is provided as agreed in #2414
I'm aware am missing several things including the tests but I just want early feedback if possible, this is my first contribution to the project :)
Closes #2414

Here is an example of the output:
image

Your checklist for this pull request

  • I have reviewed the guidelines for contributing to this repository.
  • I have added an entry to History.md if this PR fixes a bug or adds a feature. If it doesn't need an entry to HISTORY.md, I have added [changelog skip] or [ci skip] to the pull request title.
  • I have added appropriate tests if this PR fixes a bug or adds a feature.
  • My pull request is 100 lines added/removed or less so that it can be easily reviewed.
  • If this PR doesn't need tests (docs change), I added [ci skip] to the title of the PR.
  • If this closes any issues, I have added "Closes #issue" to the PR description or my commit messages.
  • I have updated the documentation accordingly.
  • All new and existing tests passed, including Rubocop.

@karloscodes karloscodes force-pushed the 2414-print-config branch 2 times, most recently from 5b0e2f7 to da8eeae Compare October 29, 2020 22:19
@nateberkopec nateberkopec added feature waiting-for-review Waiting on review from anyone labels Oct 29, 2020
@karloscodes karloscodes force-pushed the 2414-print-config branch 2 times, most recently from 3e16989 to 6cfd722 Compare October 30, 2020 08:56
lib/puma/launcher.rb Outdated Show resolved Hide resolved
@nateberkopec nateberkopec added waiting-for-changes Waiting on changes from the requestor and removed waiting-for-review Waiting on review from anyone labels Oct 30, 2020
@karloscodes karloscodes force-pushed the 2414-print-config branch 6 times, most recently from a358bd2 to 91a3e83 Compare November 1, 2020 21:17
@karloscodes
Copy link
Contributor Author

Feedback addressed :) I'd appreciate some help with the naming, especially with LOG_CONFIG, I was also considering DUMP_CONFIG or PRINT_CONFIG but wasn't too convinced of any... which one do you prefer?

/cc @nateberkopec and @MSP-Greg

@MSP-Greg
Copy link
Member

MSP-Greg commented Nov 1, 2020

I'll leave it to @nateberkopec, but we might consider whether to add PUMA to the ENV name, it can help with 'what does this affect?' questions...

lib/puma/launcher.rb Outdated Show resolved Hide resolved
@karloscodes
Copy link
Contributor Author

Feedback addressed

@nateberkopec nateberkopec added waiting-for-review Waiting on review from anyone and removed waiting-for-changes Waiting on changes from the requestor labels Nov 2, 2020
@nateberkopec nateberkopec merged commit c1b6071 into puma:master Nov 2, 2020
@nateberkopec
Copy link
Member

nateberkopec commented Nov 2, 2020

Brilliant, great feature.

@karloscodes
Copy link
Contributor Author

Thanks you so much @nateberkopec and @MSP-Greg for the support 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature waiting-for-review Waiting on review from anyone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature idea: puma config command
3 participants