Heroku suggests this Procfile command to start Puma on Rails 5 setup:
web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}
At first I thought 3000 was a default value, but in fact foreman uses port 5000 if PORT
is missing in development.
Question: What does the notation ${VARIABLE:-3000}
mean?
--
Update: It seems like puma is the culprit: Foreman/Puma isn't using the specified port in dev env