dev.exs 2.1 KB

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