Skip to content

Commit

Permalink
remember to export the AUTH_API_KEY in seeds.exs so its present durin…
Browse files Browse the repository at this point in the history
…g test lifecyle #54
  • Loading branch information
nelsonic committed Jul 17, 2020
1 parent 0d4dfd5 commit a351bfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions priv/repo/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ defmodule Auth.Seeds do
|> Auth.Apikey.create_apikey()

api_key = key.client_id <> "/" <> key.client_secret
# set the AUTH_API_KEY during test run:
System.put_env("AUTH_API_KEY", api_key)
# Set the AUTH_API_KEY to a valid value that is in the DB:
IO.puts("Remember to set the AUTH_API_KEY environment variable:")
IO.puts("export AUTH_API_KEY=#{api_key}")
Expand Down

0 comments on commit a351bfc

Please sign in to comment.