node.js - Environment variables (process.env.VCAP_APP_PORT) -


i'm starting micro cloud foundry node applications. have newbie question, i'd solve. have simple code creates new node web server listening on port 3000. works locally. when upload micro cloud foundry instance, see listening port has changed process.env.vcap_app_port me. reason? can upload application , customize listening port? thanksi'm starting micro cloud foundry node applications. have newbie question, i'd solve. have simple code creates new node web server listening on port 3000. works locally. when upload micro cloud foundry instance, see listening port has changed process.env.vcap_app_port me. reason? can upload application , customize listening port? thanks

cloudfoundry runs application in specific container or execution environment (called dea). dea controls access ports , services each application. provides application execution port using environment variable vcap_app_port application can use it. default , desired feature cloudfoundry.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -