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

java - Cast from Object to List<String>: CastClassException -

How to set a border for android Imageview in Longpress? -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -