Last active
October 27, 2015 19:51
-
-
Save fcruxen/9ad456039eee91632cd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OUT [info] Sent 500 in 5004ms | |
2015-10-27T17:28:35.99-0200 [App/0] OUT [error] #PID<0.10215.0> running App.Endpoint terminated | |
2015-10-27T17:28:35.99-0200 [App/0] OUT Server: hostname:80 (http) | |
2015-10-27T17:28:35.99-0200 [App/0] OUT Request: GET /controller/method?name=name&key=key | |
2015-10-27T17:28:35.99-0200 [App/0] OUT ** (exit) exited in: GenServer.call(#PID<0.387.0>, {:find, "document", [{"$query", ["$and": [[name: "name"], [key: "key"]]]}, {"$orderby", %{}}], %{_id: true, active: true, key: true, name: true}, [batch_size: 1]}, 5000) | |
2015-10-27T17:28:35.99-0200 [App/0] OUT ** (EXIT) time out | |
MONGODB CONFIG: | |
config :app, App.Repo, | |
database: "db", | |
hostname: "host", | |
port: 27017, | |
username: "user", | |
password: "pass", | |
connect_timeout: 10000, | |
poll_timeout: 1000, | |
pool_size: 50, | |
socket_options: [keepalive: true] | |
MIX: | |
defmodule App.Mixfile do | |
use Mix.Project | |
def project do | |
[app: :app, | |
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, | |
deps: deps] | |
end | |
# Configuration for the OTP application | |
# | |
# Type `mix help compile.app` for more information | |
def application do | |
[mod: {App, []}, | |
applications: applications(Mix.env)] | |
end | |
defp applications(:test), do: applications(:all) ++ [:blacksmith] | |
defp applications(_all), do: [:phoenix, :phoenix_html, :cowboy, :tzdata, :logger, :phoenix_ecto, :mongodb_ecto, :ecto, :timex, :exq] | |
# Specifies which paths to compile per environment | |
defp elixirc_paths(:test), do: ["lib", "web", "test/support", "test/forges"] | |
defp elixirc_paths(_), do: ["lib", "web"] | |
# Specifies your project dependencies | |
# | |
# Type `mix help deps` for examples and options | |
defp deps do | |
[{:phoenix, "~> 1.0.2"}, | |
{:ecto, "~> 1.0", override: true}, | |
{:phoenix_ecto, "~> 1.2.0"}, | |
{:phoenix_html, "~> 2.2.0"}, | |
{:phoenix_live_reload, "~> 1.0", only: :dev}, | |
{:cowboy, "1.0.2"}, | |
{:mongodb_ecto, github: "michalmuskala/mongodb_ecto"}, | |
{:phoenix_generator, github: "etufe/phoenix_generator"}, | |
{:poison, "~> 1.5"}, | |
{:tzdata, "~> 0.5.2"}, | |
{:timex, "~> 0.19.3", override: true}, | |
{:timex_ecto, "~> 0.4.0"}, | |
{:exq, "~> 0.2.1"}, | |
{:espec_phoenix, "~> 0.1.7", only: :test, app: false}, | |
{:blacksmith, "~> 0.1"}, | |
{:ecto_validation_case, ">= 0.1.0", env: :test}] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment