Search code examples
environment-variablesibm-cloudobject-storage

Using characters such as ) in Bluemix runtime environment variables


I've got a ruby on rails app running on Bluemix. With this app I use a couple of services, one of which is Object Storage.

Logically, I want to put the credentials that I use for each environment (dev and prod) in the environment variables that you can specify in the runtime tab within Bluemix.

I want to put a password like this in there:

23aSeefae,,)ewFe

The runtime environment is not accepting the ) sign.

It says: enter image description here

I have tried double quotes, single quotes and I have tried to escape the ) sign with a backslash.

Any help would be appreciated. Is there any way in which I can store my variables outside of my app and within the Bluemix environment instead?

PS: password is not a real password.


Solution

  • I've gotten help from the Bluemix support as well now. This is by far most easy way to do what I want:

    You can set environment variables through the Cloud Foundry command line interface.

    cf set-env <APP_NAME> <ENV_VAR_NAME> <ENV_VAR_VALUE>
    

    You will have to restage your app before you can use them.