Why is foreman gem ignoring the PORT environment variable?
Looking at the code: https://github.com/ddollar/foreman/blob/master/lib/foreman/process.rb it looks foreman will only take the PORT as a command line argument.
What does ${PORT:-3000} mean in Heroku Procfile?
That is the default value of the VARIABLE
.
Use Default Values. If parameter is unset or null, the expansion of
word is substituted. Otherwise, the value of parameter is
substituted.
From: https://www.gnu.org/software/bash/manual/bash.html#Shell-Parameter-Expansion
In this case if the PORT
variable is not set then its value will be 3000
and similarly if RACK_ENV
is not set then it will be development
.
Related Topics
Trying to Get Svn2Git Working on Windows
Can't Install Rmagick and Imagemagick on Windows 7
Combine Thumbnails to One Large Image with Rmagick
How to Extend a Class from an Initializer and Have It Reload in Development Environment
Factory_Girl + Rspec Doesn't Seem to Roll Back Changes After Each Example
Raise Exception on Shell Command Failure
Using Ruby 2.0 on Amazon Opsworks
Lion: Problem with Rvm Installing Rubies - Problem Related to Openssl
How to Get a Hash Value by Numeric Index
Package Configuration for Libffi Is Not Found in MACos While Installing Travis-Cli
Load Works on Local Path, Require Doesn'T
How to Restart Rails from Within Rails
Should Rbenv Be Installed System-Wide, or at a User Level
How to Make a Method Available to Both My Controller and Model in Rails
Ruby, How to Add a Param to an Url That You Don't Know If It Has Any Other Param Already