Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

get port from env in template (fix for #1118) #1127

Merged
merged 2 commits into from May 7, 2012

Conversation

Projects
None yet
2 participants
Contributor

benatkin commented May 7, 2012

I made a change to the app template as suggested in #1118, that gets the port from an environment variable, if it's present. This is used by multiple deployment environments, including Heroku. The updated app template uses an application setting, port, so it can be used elsewhere as well.

@tj tj added a commit that referenced this pull request May 7, 2012

@tj tj Merge pull request #1127 from benatkin/template-port-from-env
get port from env in template (fix for #1118)
9da3e9c

@tj tj merged commit 9da3e9c into expressjs:master May 7, 2012

@rlidwka rlidwka pushed a commit to rlidwka/express that referenced this pull request Aug 6, 2014

@tj tj Merge pull request #1127 from benatkin/template-port-from-env
get port from env in template (fix for #1118)
7248ea7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment