Skip to content

Instantly share code, notes, and snippets.

@bnhansn
Last active November 21, 2016 02:02
Show Gist options
  • Save bnhansn/904c781596b75e9f76f19ad02613888c to your computer and use it in GitHub Desktop.
Save bnhansn/904c781596b75e9f76f19ad02613888c to your computer and use it in GitHub Desktop.
# ...
config :sling, Sling.Endpoint,
http: [port: {:system, "PORT"}],
url: [scheme: "https", host: "nameless-reaches-32969.herokuapp.com", port: 443], # substitute your app's name
cache_static_manifest: "priv/static/manifest.json",
secret_key_base: System.get_env("SECRET_KEY_BASE"),
check_origin: ["http://sling-chat.s3-website-us-west-2.amazonaws.com"] # substitute you frontend's domain
# ...
config :guardian, Guardian,
secret_key: System.get_env("GUARDIAN_SECRET_KEY")
config :sling, Sling.Repo,
adapter: Ecto.Adapters.Postgres,
url: System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
ssl: true
# import_config "prod.secret.exs" <- comment out/remove this line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment