-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathdev.exs
77 lines (62 loc) · 2.61 KB
/
dev.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
use Mix.Config
require Logger
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :code_corps, CodeCorpsWeb.Endpoint,
http: [port: 4000],
debug_errors: true,
code_reloader: true,
check_origin: false
config :code_corps, site_url: "http://localhost:4200"
# Watch static and templates for browser reloading.
config :code_corps, CodeCorpsWeb.Endpoint,
live_reload: [
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r{priv/gettext/.*(po)$},
~r{lib/code_corps_web/views/.*(ex)$},
~r{lib/code_corps_web/templates/.*(eex)$}
]
]
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"
# Set a higher stacktrace during development. Avoid configuring such
# in production as building large stacktraces may be expensive.
config :phoenix, :stacktrace_depth, 20
# Configure your database
config :code_corps, CodeCorps.Repo,
adapter: Ecto.Adapters.Postgres,
username: System.get_env("DATABASE_POSTGRESQL_USERNAME") || "postgres",
password: System.get_env("DATABASE_POSTGRESQL_PASSWORD") || "postgres",
hostname: System.get_env("DATABASE_POSTGRESQL_HOST") || "localhost",
database: "code_corps_phoenix_dev",
pool_size: 10
# CORS allowed origins
config :code_corps, allowed_origins: ["http://localhost:4200"]
config :code_corps, CodeCorps.Guardian,
secret_key: "e62fb6e2746f6b1bf8b5b735ba816c2eae1d5d76e64f18f3fc647e308b0c159e"
config :code_corps, :analytics, CodeCorps.Analytics.InMemoryAPI
# Configures stripe for dev mode
config :code_corps, :stripe, Stripe
config :code_corps, :stripe_env, :dev
config :sentry, environment_name: Mix.env() || :dev
config :code_corps, CodeCorps.Mailer, adapter: Bamboo.LocalAdapter
config :code_corps,
postmark_forgot_password_template: "123",
postmark_organization_invite_email_template: "123",
postmark_project_acceptance_template: "123",
postmark_project_request_template: "123",
postmark_receipt_template: "123"
# Configure elasticsearch
config :code_corps, :elasticsearch_url, "http://0.0.0.0:9200"
# If the dev environment has no CLOUDEX_API_KEY set, we want the app
# to still run, with cloudex in test API mode
if System.get_env("CLOUDEX_API_KEY") == nil do
Logger.info("NOTE: No Cloudex configuration found. Cloudex is running in test mode.")
config :code_corps, :cloudex, CloudexTest
config :cloudex, api_key: "test_key", secret: "test_secret", cloud_name: "test_cloud_name"
end