mix zharp.install (Zharp v0.1.0)

Copy Markdown View Source

Sets up Zharp: the plug in your endpoint, the release step and the runtime config

mix igniter.install zharp
mix igniter.install zharp --key zpk_...
  • plug Zharp.Plug in each Phoenix endpoint (request and response headers, user and session on each request's span);
  • config :zharp in config/runtime.exs (the key from ZHARP_KEY, the environment from config_env()), and Zharp off in config/test.exs;
  • the release step that packs your source into mix release (Zharp.Release.package_source/1), when the project has no releases: of its own yet;
  • with --key, ZHARP_KEY in .env when the project has one.