diff --git a/.env b/.env index f545347..666ff52 100644 --- a/.env +++ b/.env @@ -18,6 +18,7 @@ DB_PORT=5432 # Seed and migrate DB on start APP_RUN_SEED=true APP_MIGRATE=true +SQL_SANDBOX=true # Phoenix endpoint settings APP_PORT=4000 diff --git a/config/prod.exs b/config/prod.exs index 7a6c8e9..7c946a2 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -71,6 +71,9 @@ config :tokenizer_api, # config :phoenix, :serve_endpoints, true +# Allow to run concurrent acceptance tests on container +config :tokenizer_api, sql_sandbox: {:system, :boolean, "SQL_SANDBOX", false} + # # Alternatively, you can configure exactly which server to # start per endpoint: diff --git a/lib/db/tasks.ex b/lib/db/tasks.ex index bd8e632..d560bd1 100644 --- a/lib/db/tasks.ex +++ b/lib/db/tasks.ex @@ -38,9 +38,8 @@ defmodule :tokenizer_api_tasks do end defp start_repo(repo) do - load_app - # If you don't include Repo in application supervisor start it here manually - # repo.start_link() + load_app() + repo.start_link() repo end