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:
0 -
Thank you. I do know how to set them up on Heroku. I figured that out. But I don't know how the cloudinary.yml file should look. I'm also having trouble figuring out how to set the environment variable on my development machine.
0 -
You can see a sample of the yml file from your console.
Note that you can use the environment variable globally with something like
export CLOUDINARY_URL=...
For more information:
https://devcenter.heroku.com/articles/cloudinary#local-environment-setup0
Post is closed for comments.
Comments
3 comments