Closed GuillaumeOcculy closed 2 years ago
I figured it out.
If we use dotenv-rails
gem, Gemfile should be like this
...
gem "dotenv-rails", require: "dotenv/rails-now", groups: [:development, :test]
gem "uploadcare-rails"
I created a PR https://github.com/uploadcare/uploadcare-rails/pull/106
I have this error when I try to run
rails server
This is not a ENV problem because I wrote my credentials directly on
config/initializers/uploadcare.rb
and still have the same issueThe only way to fix it right now is to run
export UPLOADCARE_PUBLIC_KEY=demopublickey
but it is not the solutionEnvironment
uploadcare-rails (2.1.0)
uploadcare-ruby (3.3.1)
dotenv-rails (2.7.6)
rails (7.0.2.3)
ruby (3.0.3)
OS X (12.3.1)