| 1 |
/* |
| 2 |
https://github.com/qhwa/bonfire/blob/master/config/dev.exs |
| 3 |
*/ |
| 4 |
use Mix.Config |
| 5 |
|
| 6 |
config :bonfire, Bonfire.EventStore, |
| 7 |
serializer: Commanded.Serialization.JsonSerializer, |
| 8 |
username: "postgres", |
| 9 |
password: "postgres", |
| 10 |
database: "bonfire_eventstore_dev", |
| 11 |
hostname: "localhost", |
| 12 |
pool_size: 10 |
| 13 |
|
| 14 |
# Configure your database |
| 15 |
config :bonfire, Bonfire.Repo, |
| 16 |
username: "postgres", |
| 17 |
password: "postgres", |
| 18 |
database: "bonfire_dev", |
| 19 |
hostname: "localhost", |
| 20 |
pool_size: 10 |
| 21 |
|
| 22 |
# For development, we disable any cache and enable |
| 23 |
# debugging and code reloading. |
| 24 |
# |
| 25 |
# The watchers configuration can be used to run external |
| 26 |
# watchers to your application. For example, we use it |
| 27 |
# with webpack to recompile .js and .css sources. |
| 28 |
config :bonfire, BonfireWeb.Endpoint, |
| 29 |
http: [port: 4000], |
| 30 |
debug_errors: true, |
| 31 |
code_reloader: true, |
| 32 |
check_origin: false, |
| 33 |
watchers: [ |
| 34 |
node: [ |
| 35 |
"node_modules/webpack/bin/webpack.js", |
| 36 |
"--mode", |
| 37 |
"development", |
| 38 |
"--watch-stdin", |
| 39 |
cd: Path.expand("../assets", __DIR__) |
| 40 |
] |
| 41 |
] |
| 42 |
|
| 43 |
# ## SSL Support |
| 44 |
# |
| 45 |
# In order to use HTTPS in development, a self-signed |
| 46 |
# certificate can be generated by running the following |
| 47 |
# Mix task: |
| 48 |
# |
| 49 |
# mix phx.gen.cert |
| 50 |
# |
| 51 |
# Note that this task requires Erlang/OTP 20 or later. |
| 52 |
# Run `mix help phx.gen.cert` for more information. |
| 53 |
# |
| 54 |
# The `http:` config above can be replaced with: |
| 55 |
# |
| 56 |
# https: [ |
| 57 |
# port: 4001, |
| 58 |
# cipher_suite: :strong, |
| 59 |
# keyfile: "priv/cert/selfsigned_key.pem", |
| 60 |
# certfile: "priv/cert/selfsigned.pem" |
| 61 |
# ], |
| 62 |
# |
| 63 |
# If desired, both `http:` and `https:` keys can be |
| 64 |
# configured to run both http and https servers on |
| 65 |
# different ports. |
| 66 |
|
| 67 |
# Watch static and templates for browser reloading. |
| 68 |
config :bonfire, BonfireWeb.Endpoint, |
| 69 |
live_reload: [ |
| 70 |
patterns: [ |
| 71 |
~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$", |
| 72 |
~r"priv/gettext/.*(po)$", |
| 73 |
~r"lib/bonfire_web/(live|views)/.*(ex)$", |
| 74 |
~r"lib/bonfire_web/templates/.*(eex)$" |
| 75 |
] |
| 76 |
] |
| 77 |
|
| 78 |
# Do not include metadata nor timestamps in development logs |
| 79 |
config :logger, :console, format: "[$level] $message\n" |
| 80 |
|
| 81 |
# Set a higher stacktrace during development. Avoid configuring such |
| 82 |
# in production as building large stacktraces may be expensive. |
| 83 |
config :phoenix, :stacktrace_depth, 20 |
| 84 |
|
| 85 |
# Initialize plugs at runtime for faster development compilation |
| 86 |
config :phoenix, :plug_init_mode, :runtime |