dev.exs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 :vaccins, VaccinsWeb.Endpoint,
  9. http: [port: 4005],
  10. debug_errors: true,
  11. code_reloader: true,
  12. check_origin: false,
  13. watchers: [
  14. node: [
  15. "node_modules/webpack/bin/webpack.js",
  16. "--mode",
  17. "development",
  18. "--watch-stdin",
  19. cd: Path.expand("../assets", __DIR__)
  20. ]
  21. ]
  22. # ## SSL Support
  23. #
  24. # In order to use HTTPS in development, a self-signed
  25. # certificate can be generated by running the following
  26. # Mix task:
  27. #
  28. # mix phx.gen.cert
  29. #
  30. # Note that this task requires Erlang/OTP 20 or later.
  31. # Run `mix help phx.gen.cert` for more information.
  32. #
  33. # The `http:` config above can be replaced with:
  34. #
  35. # https: [
  36. # port: 4001,
  37. # cipher_suite: :strong,
  38. # keyfile: "priv/cert/selfsigned_key.pem",
  39. # certfile: "priv/cert/selfsigned.pem"
  40. # ],
  41. #
  42. # If desired, both `http:` and `https:` keys can be
  43. # configured to run both http and https servers on
  44. # different ports.
  45. # Watch static and templates for browser reloading.
  46. config :vaccins, VaccinsWeb.Endpoint,
  47. live_reload: [
  48. patterns: [
  49. ~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$",
  50. ~r"priv/gettext/.*(po)$",
  51. ~r"lib/vaccins_web/(live|views)/.*(ex)$",
  52. ~r"lib/vaccins_web/templates/.*(eex)$"
  53. ]
  54. ]
  55. # Do not include metadata nor timestamps in development logs
  56. config :logger, :console, format: "[$level] $message\n"
  57. # Set a higher stacktrace during development. Avoid configuring such
  58. # in production as building large stacktraces may be expensive.
  59. config :phoenix, :stacktrace_depth, 20
  60. # Initialize plugs at runtime for faster development compilation
  61. config :phoenix, :plug_init_mode, :runtime