Skip to content

Commit

Permalink
Locally use the options to read the port
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgi Panayotov authored and Patrick Mueller committed Feb 21, 2019
1 parent 3490eda commit c6262a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib-src/cfenv.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ getServices = (appEnv, options) ->

#-------------------------------------------------------------------------------
getPort = (appEnv) ->
portString = process.env.PORT || process.env.CF_INSTANCE_PORT || process.env.VCAP_APP_PORT
portString = process.env.PORT || process.env.CF_INSTANCE_PORT || process.env.VCAP_APP_PORT || appEnv?.app?.port

unless portString?
return 3000 unless appEnv.name?
Expand Down
4 changes: 2 additions & 2 deletions lib/cfenv.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c6262a6

Please sign in to comment.