Lucs
Lucs

Reputation: 13

Is it possible to add a ENV Var via App manifest.yml in Cloud Foundry?

The question seems clear. I was unable to get info on that.

The way I can use for instance is :

$ vmc push myapp --no-start
$ vmc env-add myapp MYVAR=var 
$ vmc start myapp

So, it's possible to configure that in my manifest.yml, and in which way ?

I would set NODE_ENV="production"

Thank's

Upvotes: 1

Views: 968

Answers (1)

Alex Suraci
Alex Suraci

Reputation: 841

With the latest VMC (gem install vmc --pre, mkdir ~/.vmc/use-ng), have this in your manifest alongside the app attributes like name, instances, etc.:

env:
  NODE_ENV: production

Not sure about legacy VMC, sorry.

Upvotes: 2

Related Questions