grizzly v0.10.2 Grizzly.Runtime View Source

Cofiguration params:

  • :auto_start - setup runtime when Grizzly application starts
  • :on_ready - a {module, function, args} to call after the runtime seems to be up and running correctly
  • :run_zipgateway_bin - if you run zipgateway outside of Grizzly you can set this to false

Example:

config :grizzly,
  runtime: [
    auto_start: true,
    on_ready: {MyModule, :grizzly_ready, []},
    run_zipgateway_bin: true
  ]

You're using Grizzly on a Nerves system, this config is probably what you want:

config :grizzly,
  runtime: [
    on_ready: {MyFirmwareProject.ZWave, :ready, []}
  ]

The other defaults should work.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Types

Specs

opt() ::
  {:auto_start, boolean()}
  | {:on_ready, mfa()}
  | {:run_zipgateway_bin, boolean()}

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

start_link([opt()]) :: GenServer.on_start()