From 80e6854d5f0a05420e5eea6deee9e41f03445b5a Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Tue, 20 Feb 2018 11:23:35 -0500 Subject: [PATCH] More Distillery changes --- config/prod.exs | 11 +++++------ mix.exs | 8 +++++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/config/prod.exs b/config/prod.exs index 9d98190..069211a 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -1,17 +1,16 @@ use Mix.Config config :chess, Chess.Endpoint, - load_from_system_env: true, - url: [host: "example.com", port: 80], - cache_static_manifest: "priv/static/cache_manifest.json" - -config :chess, Chess.Endpoint, + http: [port: {:system, "PORT"}], + url: [host: "localhost", port: {:system, "PORT"}], + cache_static_manifest: "priv/static/manifest.json", server: true, + root: "./assets", + version: Application.spec(:myapp, :vsn), secret_key_base: "${SECRET_KEY_BASE}" config :chess, Chess.Repo, adapter: Ecto.Adapters.Postgres, url: "${DATABASE_URL}", database: "", - ssl: true, pool_size: 1 diff --git a/mix.exs b/mix.exs index 3716b07..f129b60 100644 --- a/mix.exs +++ b/mix.exs @@ -18,8 +18,10 @@ defmodule Chess.Mixfile do # Type `mix help compile.app` for more information. def application do [mod: {Chess, []}, - applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext, - :phoenix_ecto, :postgrex, :timex_ecto]] + applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, + :gettext, :phoenix_ecto, :postgrex, :timex_ecto, + :argon2_elixir, :comeonin, :formulator, :guardian, + :elixir_make]] end # Specifies which paths to compile per environment. @@ -33,7 +35,7 @@ defmodule Chess.Mixfile do [{:argon2_elixir, "~> 1.2"}, {:comeonin, "~> 4.0"}, {:credo, "~> 0.8", only: [:dev, :test]}, - {:distillery, "~> 1.5"}, + {:distillery, "~> 1.5", runtime: false}, {:formulator, "~> 0.1.6"}, {:phoenix, "~> 1.3.0"}, {:phoenix_pubsub, "~> 1.0"},