dev.exs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. use Mix.Config
  2. # For development, we disable any cache and enable
  3. # debugging and code reloading.
  4. #
  5. # The watchers configuration can be used to run external
  6. # watchers to your application. For example, we use it
  7. # with webpack to recompile .js and .css sources.
  8. config :fourletters, FourlettersWeb.Endpoint,
  9. http: [port: 4000],
  10. debug_errors: true,
  11. code_reloader: true,
  12. check_origin: false,
  13. watchers: []
  14. # ## SSL Support
  15. #
  16. # In order to use HTTPS in development, a self-signed
  17. # certificate can be generated by running the following
  18. # Mix task:
  19. #
  20. # mix phx.gen.cert
  21. #
  22. # Note that this task requires Erlang/OTP 20 or later.
  23. # Run `mix help phx.gen.cert` for more information.
  24. #
  25. # The `http:` config above can be replaced with:
  26. #
  27. # https: [
  28. # port: 4001,
  29. # cipher_suite: :strong,
  30. # keyfile: "priv/cert/selfsigned_key.pem",
  31. # certfile: "priv/cert/selfsigned.pem"
  32. # ],
  33. #
  34. # If desired, both `http:` and `https:` keys can be
  35. # configured to run both http and https servers on
  36. # different ports.
  37. # Watch static and templates for browser reloading.
  38. config :fourletters, FourlettersWeb.Endpoint,
  39. live_reload: [
  40. patterns: [
  41. ~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$",
  42. ~r"priv/gettext/.*(po)$",
  43. ~r"lib/fourletters_web/(live|views)/.*(ex)$",
  44. ~r"lib/fourletters_web/templates/.*(eex)$"
  45. ]
  46. ]
  47. # Do not include metadata nor timestamps in development logs
  48. config :logger, :console, format: "[$level] $message\n"
  49. # Set a higher stacktrace during development. Avoid configuring such
  50. # in production as building large stacktraces may be expensive.
  51. config :phoenix, :stacktrace_depth, 20
  52. # Initialize plugs at runtime for faster development compilation
  53. config :phoenix, :plug_init_mode, :runtime