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

Conditional Unicorn Config #21

Open
MhdSyrwan opened this issue May 2, 2016 · 0 comments
Open

Conditional Unicorn Config #21

MhdSyrwan opened this issue May 2, 2016 · 0 comments

Comments

@MhdSyrwan
Copy link

MhdSyrwan commented May 2, 2016

Sometimes we need to write some conditional config in unicorn like:

if ENV['RAILS_PORT'] || ENV['PORT']
  listen '127.0.0.1:' + (ENV['RAILS_PORT'] || ENV['PORT'])
end

But that didn't work with this gem, after some digging i found this line of code https://github.com/samuelkadolph/unicorn-rails/blob/master/lib/unicorn_rails.rb#L27 which tests the presence of listen using a regex which will not work obviously in case of conditional configuration.

Any thoughts about this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant