1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

More Distillery changes

This commit is contained in:
Daniel Barber 2018-02-20 11:23:35 -05:00
parent be719febd2
commit 80e6854d5f
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 10 additions and 9 deletions

View File

@ -1,17 +1,16 @@
use Mix.Config use Mix.Config
config :chess, Chess.Endpoint, config :chess, Chess.Endpoint,
load_from_system_env: true, http: [port: {:system, "PORT"}],
url: [host: "example.com", port: 80], url: [host: "localhost", port: {:system, "PORT"}],
cache_static_manifest: "priv/static/cache_manifest.json" cache_static_manifest: "priv/static/manifest.json",
config :chess, Chess.Endpoint,
server: true, server: true,
root: "./assets",
version: Application.spec(:myapp, :vsn),
secret_key_base: "${SECRET_KEY_BASE}" secret_key_base: "${SECRET_KEY_BASE}"
config :chess, Chess.Repo, config :chess, Chess.Repo,
adapter: Ecto.Adapters.Postgres, adapter: Ecto.Adapters.Postgres,
url: "${DATABASE_URL}", url: "${DATABASE_URL}",
database: "", database: "",
ssl: true,
pool_size: 1 pool_size: 1

View File

@ -18,8 +18,10 @@ defmodule Chess.Mixfile do
# Type `mix help compile.app` for more information. # Type `mix help compile.app` for more information.
def application do def application do
[mod: {Chess, []}, [mod: {Chess, []},
applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext, applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger,
:phoenix_ecto, :postgrex, :timex_ecto]] :gettext, :phoenix_ecto, :postgrex, :timex_ecto,
:argon2_elixir, :comeonin, :formulator, :guardian,
:elixir_make]]
end end
# Specifies which paths to compile per environment. # Specifies which paths to compile per environment.
@ -33,7 +35,7 @@ defmodule Chess.Mixfile do
[{:argon2_elixir, "~> 1.2"}, [{:argon2_elixir, "~> 1.2"},
{:comeonin, "~> 4.0"}, {:comeonin, "~> 4.0"},
{:credo, "~> 0.8", only: [:dev, :test]}, {:credo, "~> 0.8", only: [:dev, :test]},
{:distillery, "~> 1.5"}, {:distillery, "~> 1.5", runtime: false},
{:formulator, "~> 0.1.6"}, {:formulator, "~> 0.1.6"},
{:phoenix, "~> 1.3.0"}, {:phoenix, "~> 1.3.0"},
{:phoenix_pubsub, "~> 1.0"}, {:phoenix_pubsub, "~> 1.0"},