Skip to content

Instantly share code, notes, and snippets.

@MicrexIT
Last active July 14, 2021 11:58
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/ba994a0ecdc1e3197a87898ef251a4ba to your computer and use it in GitHub Desktop.
Save MicrexIT/ba994a0ecdc1e3197a87898ef251a4ba to your computer and use it in GitHub Desktop.
Elixir Phoenix runtime Deployment
```elixir
# config/prod.exs
import Config
config :your_app_otp_name, YourAppWeb.Endpoint,
# url: [host: "example.com", port: 80],
url: [host: "localhost", port: 4000],
cache_static_manifest: "priv/static/cache_manifest.json"
# Do not print debug messages in production
config :logger, level: :info
# ....... #
# --> DELETE THIS! import_config "runtime.exs"ifneq (,$(wildcard ./.env))
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment