46 lines
1.4 KiB
Elixir
46 lines
1.4 KiB
Elixir
use Mix.Config
|
|
|
|
# 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 :asciinema, Asciinema.Endpoint,
|
|
http: [port: 4000],
|
|
debug_errors: true,
|
|
code_reloader: true,
|
|
check_origin: false,
|
|
secret_key_base: "60BnXnzGGwwiZj91YA9XYKF9BCiM7lQ/1um8VXcWWLSdUp9OcPZV6YnQv7eFTYSY",
|
|
watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin",
|
|
cd: Path.expand("../", __DIR__)]]
|
|
|
|
|
|
# Watch static and templates for browser reloading.
|
|
config :asciinema, Asciinema.Endpoint,
|
|
live_reload: [
|
|
patterns: [
|
|
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
|
|
~r{priv/gettext/.*(po)$},
|
|
~r{web/views/.*(ex)$},
|
|
~r{web/templates/.*(eex|md)$}
|
|
]
|
|
]
|
|
|
|
# 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 :asciinema, Asciinema.Repo,
|
|
adapter: Ecto.Adapters.Postgres,
|
|
url: System.get_env("DATABASE_URL"),
|
|
username: "postgres",
|
|
password: "postgres",
|
|
database: "asciinema_development",
|
|
hostname: "localhost",
|
|
pool_size: 10
|