Skip to content

Commit

Permalink
Fix various container start issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDryga committed Oct 30, 2016
1 parent ecfb4c6 commit 60a1fc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 2 additions & 3 deletions lib/db/tasks.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 60a1fc9

Please sign in to comment.