This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

How to use enviroment variable instead cloudinary.yml

Comments

4 comments

  • Avatar
    Itay Taragano

    You can use the CLOUDINARY_URL env var as supplied in your Admin Console, and then access it with ENV["CLOUDINARY_URL"]

    0
    Comment actions Permalink
  • Avatar
    Duyet Nguyen

    Thanks, problem was resolved.

    0
    Comment actions Permalink
  • Avatar
    Javier Botero
    development:
    cloud_name: ENV["CLOUDINARY_URL"]
    api_key: ENV["CLOUDINARY_URL"]
    api_secret: ENV["CLOUDINARY_URL"]
    enhance_image_tag: true
    static_file_support: false
     
    This would be the way to go?
    0
    Comment actions Permalink
  • Avatar
    Roee Ben Ari

    Hi Javier, 

    As described in the doc Duyet shared above, you can use environment variables to create any key and store any value you'd like to use in your application.
    ENV["CLOUDINARY_URL"] is meant to store the entire CLOUDINARY_URL variable. If you'd like to store the cloud name, API Key and API Secret as well, you'll have to use something like:

    cloud_name: ENV["CLOUD_NAME"]
    api_key: ENV["API_KEY"]
    api_secret: ENV["API_SECRET"]
    0
    Comment actions Permalink

Post is closed for comments.