How can I set up cloudinary.yml using environment variables?
I'm using Rails 4, github and deploying to Heroku.
It's my understanding that it's a bad idea for me to publish the API secret and key directly onto to github. I understand the solution might be to use environment variables instead. Do you have an example of how to do that? What should be in my cloudinary.yml file and what are the commands for setting environment variables on Heroku?
Please see the following for the information about configuring environment variables on Heroku:
You can see a sample of the yml file from your console.
Note that you can use the environment variable globally with something like
For more information:
Post is closed for comments.