releases.exs 946 B

1234567891011121314151617181920212223242526272829
  1. # In this file, we load production configuration and secrets
  2. # from environment variables. You can also hardcode secrets,
  3. # although such is generally not recommended and you have to
  4. # remember to add this file to your .gitignore.
  5. import Config
  6. secret_key_base =
  7. System.get_env("SECRET_KEY_BASE") ||
  8. raise """
  9. environment variable SECRET_KEY_BASE is missing.
  10. You can generate one by calling: mix phx.gen.secret
  11. """
  12. config :fourletters, FourlettersWeb.Endpoint,
  13. http: [
  14. port: String.to_integer(System.get_env("PORT") || "4000"),
  15. transport_options: [socket_opts: [:inet6]]
  16. ],
  17. secret_key_base: secret_key_base
  18. # ## Using releases (Elixir v1.9+)
  19. #
  20. # If you are doing OTP releases, you need to instruct Phoenix
  21. # to start each relevant endpoint:
  22. #
  23. config :fourletters, FourlettersWeb.Endpoint, server: true
  24. #
  25. # Then you can assemble a release by calling `mix release`.
  26. # See `mix help release` for more information.