문제

I need to set up consumer key and secrets for Github, Twitter and Facebook.

On version 1 of Cloud Foundry you could do vmc env-add NAME=VALUE Now with the cf gem I see I can do cf env but thats it. I also tried setting a .env file and repushing with no success

도움이 되었습니까?

해결책 2

It looks like you can do a cf set-env (https://github.com/cloudfoundry/cf/blob/master/lib/cf/cli/app/env.rb). You can also always do a cf help --all, which will show you all the commands you can use.

다른 팁

In addition, you can set environment variables in an application manifest file.

Here is an example of how to do so (see the env section of the manifest with name/value pairs)

---
applications:
- name: app1
  env:
    ENV_VAR_1: MYVALUE
    ENV_VAR_2: ZZZ
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top