Re: Problem deploying basic Apps on PWS


Juan Antonio BreƱa Moral <bren at juanantonio.info...>
 

Hi Charles,

You said the clue!!!
Yesterday, I updated the development and I could deploy on PWS.

From environments without Diego, the way to run a Node development is:

var localPort = process.env.VCAP_APP_PORT|| 5000;

With Diego the way is:

var localPort = process.env.PORT || 5000;

If the developer uses GO Cli, it is necessary to indicate the application that it uses Diego:

cf push APP_XXX --no-start
cf enable-diego APP_XXX
cf start APP_XXX

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.