Skip to content

Instantly share code, notes, and snippets.

@MicrexIT
Last active July 14, 2021 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MicrexIT/98e9fe7b94a20dc9db456b40a899a137 to your computer and use it in GitHub Desktop.
Save MicrexIT/98e9fe7b94a20dc9db456b40a899a137 to your computer and use it in GitHub Desktop.
Elixir Phoenix configs Deployment
# config/config.exs
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :theme_ci_admin,
ecto_repos: [YourApp.Repo]
# Configures the endpoint
config :your_app_otp_name, YourAppWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "<INSERT YOUR SECRET KEY BASE HERE>",
render_errors: [view: YourAppWeb.ErrorView, accepts: ~w(html json), layout: false],
pubsub_server: YourApp.PubSub,
live_view: [signing_salt: "Y518mhPE"]
# Configures Elixir's Logger
config :logger, :console,
format: "$time $metadata[$level] $message\\n",
metadata: [:request_id]
# Use Jason for JSON parsing in Phoenix
config :phoenix, :json_library, Jason
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{config_env()}.exs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment