Skip to content

Commit

Permalink
Merge pull request #106 from GuillaumeOcculy/105-update-readme
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
rsedykh authored Apr 29, 2022
2 parents 9b414f4 + a8f3ec0 commit d99432a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ $ export UPLOADCARE_PUBLIC_KEY=demopublickey
$ export UPLOADCARE_SECRET_KEY=demoprivatekey
```
Or you can use popular gems like `dotenv-rails` for setting ENV variables.
You must set the gem before `uploadcare-rails` like this :
```ruby
gem "dotenv-rails", require: "dotenv/rails-now", groups: [:development, :test]
gem "uploadcare-rails"
```
:warning: `require: "dotenv/rails-now"` is very important!

Run the config generator command to generate a configuration file:

Expand Down

0 comments on commit d99432a

Please sign in to comment.