Skip to content

Commit

Permalink
Read sql sandbox env at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDryga committed Oct 30, 2016
1 parent 95b7595 commit 9e695ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http/endpoint.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule Tokenizer.HTTP.Endpoint do
require Logger

# Allow acceptance tests to run in concurrent mode
if Application.get_env(:tokenizer_api, :sql_sandbox) do
if Confex.get(:tokenizer_api, :sql_sandbox) do
Logger.warn("This endpoint is running in SQL Sandbox mode, don't enable it on production!")
plug Phoenix.Ecto.SQL.Sandbox
end
Expand Down

0 comments on commit 9e695ba

Please sign in to comment.