Skip to content

Commit

Permalink
move api token outside runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
cbh123 committed Jun 2, 2023
1 parent a5a7f95 commit bc30d08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Config

config :replicate,
replicate_client: Replicate.Client,
replicate_poll_interval: 500
replicate_poll_interval: 500,
replicate_api_token: System.get_env("REPLICATE_API_TOKEN")

import_config "#{config_env()}.exs"
3 changes: 0 additions & 3 deletions config/runtime.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import Config

config :replicate,
replicate_api_token: System.get_env("REPLICATE_API_TOKEN")
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Replicate.MixProject do
def project do
[
app: :replicate,
version: "0.1.0",
version: "0.2.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit bc30d08

Please sign in to comment.