Skip to content
This repository has been archived by the owner on Jan 6, 2019. It is now read-only.

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ndruger committed Sep 23, 2015
1 parent 1de594f commit 68b85a6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 25 deletions.
24 changes: 15 additions & 9 deletions config/dev.exs
Expand Up @@ -7,19 +7,25 @@ use Mix.Config
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :hello_phoenix, HelloPhoenix.Endpoint,
http: [port: 3000],
debug_errors: true,
code_reloader: true,
cache_static_lookup: false,
watchers: [node: ["node_modules/webpack/bin/webpack.js", "--watch"]]
[
http: [port: 3000],
debug_errors: true,
code_reloader: true,
cache_static_lookup: false,
watchers: [node: ["node_modules/webpack/bin/webpack.js", "--watch"]]
]
# watchers: [node: ["node_modules/brunch/bin/brunch", "watch"]]

config :hello_phoenix, HelloPhoenix.Backend,
neko2: "test"
[
neko2: "test"
]

config :backend,
host: "http://localhost",
key: System.get_env("MAILGUN_API_KEY")
[
host: "http://localhost",
key: System.get_env("MAILGUN_API_KEY")
]

# Watch static and templates for browser reloading.
config :hello_phoenix, HelloPhoenix.Endpoint,
Expand All @@ -32,6 +38,6 @@ config :hello_phoenix, HelloPhoenix.Endpoint,
]

# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"
config :logger, :console, [format: "[$level] $message\n"]

import_config "dev.secret.exs"
38 changes: 22 additions & 16 deletions mix.exs
Expand Up @@ -2,15 +2,19 @@ defmodule HelloPhoenix.Mixfile do
use Mix.Project

def project do
[app: :hello_phoenix,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
test_coverage: [tool: Coverex.Task],
deps: deps]
[
app: :hello_phoenix,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
test_coverage: [tool: Coverex.Task],
deps: deps,
# dialyzer: [flags: ["-Wunmatched_returns", "-Werror_handling", "-Wrace_conditions", "-Wunderspecs"],
dialyzer: [flags: ["-Wunmatched_returns", "-Werror_handling", "-Wrace_conditions", "-Wunderspecs", "-Wno_behaviours"]]
]
end

# Configuration for the OTP application
Expand All @@ -29,12 +33,14 @@ defmodule HelloPhoenix.Mixfile do
#
# Type `mix help deps` for examples and options
defp deps do
[{:phoenix, "~> 0.14"},
{:phoenix_html, "~> 1.1"},
{:phoenix_live_reload, "~> 0.4", only: :dev},
{:cowboy, "~> 1.0"},
{:ibrowse, github: "cmullaparthi/ibrowse", tag: "v4.1.1"},
{:coverex, "~> 1.4.1" },
{:httpotion, "~> 2.1.0"}]
[
{:phoenix, "~> 0.14"},
{:phoenix_html, "~> 1.1"},
{:phoenix_live_reload, "~> 0.4", only: :dev},
{:cowboy, "~> 1.0"},
{:ibrowse, github: "cmullaparthi/ibrowse", tag: "v4.1.1"},
{:coverex, "~> 1.4.1" },
{:httpotion, "~> 2.1.0"}
]
end
end
1 change: 1 addition & 0 deletions mix.lock
Expand Up @@ -2,6 +2,7 @@
"cowboy": {:hex, :cowboy, "1.0.2"},
"cowlib": {:hex, :cowlib, "1.0.1"},
"decimal": {:hex, :decimal, "1.1.0"},
"dialyze": {:hex, :dialyze, "0.1.4"},
"ecto": {:hex, :ecto, "0.13.1"},
"fs": {:hex, :fs, "0.9.2"},
"hackney": {:hex, :hackney, "1.2.0"},
Expand Down

0 comments on commit 68b85a6

Please sign in to comment.