dev.exs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 brunch.io to recompile .js and .css sources.
  8. config :giom, GiomWeb.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. # command from your terminal:
  19. #
  20. # openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout priv/server.key -out priv/server.pem
  21. #
  22. # The `http:` config above can be replaced with:
  23. #
  24. # https: [port: 4000, keyfile: "priv/server.key", certfile: "priv/server.pem"],
  25. #
  26. # If desired, both `http:` and `https:` keys can be
  27. # configured to run both http and https servers on
  28. # different ports.
  29. # Watch static and templates for browser reloading.
  30. config :giom, GiomWeb.Endpoint,
  31. live_reload: [
  32. patterns: [
  33. ~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
  34. ~r{priv/gettext/.*(po)$},
  35. ~r{lib/giom_web/views/.*(ex)$},
  36. ~r{lib/giom_web/templates/.*(eex)$}
  37. ]
  38. ]
  39. # Do not include metadata nor timestamps in development logs
  40. config :logger, :console, format: "[$level] $message\n"
  41. # Set a higher stacktrace during development. Avoid configuring such
  42. # in production as building large stacktraces may be expensive.
  43. config :phoenix, :stacktrace_depth, 20
  44. # Configure your database
  45. config :giom, Giom.Repo,
  46. adapter: Ecto.Adapters.Postgres,
  47. username: "postgres",
  48. password: "postgres",
  49. database: "giom_dev",
  50. hostname: "localhost",
  51. pool_size: 10