Skip to content

please ignore defined but empty ENV['PORT'] #697

noxqsgit opened this Issue Mar 25, 2013 · 1 comment

2 participants


Sinatra recently started using ENV['PORT'] if defined. My setup has a defined but empty $PORT. This results in an Integer parsing error. It would be nice if you could change

set :port, Integer(ENV['PORT'] || 4567)

to e.g.

set :port, Integer(ENV['PORT'] && !ENV['PORT'].empty? ? ENV['PORT'] : 4567)

- Felix

Sinatra member
rkh commented Mar 25, 2013

This sounds like a good idea. Would you mind turning that into a pull request?

@rkh rkh closed this Mar 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.