View Source Lightning.Setup (Lightning v2.10.4)

Demo encapsulates logic for setting up a demonstration site.

Summary

Functions

Set up the bare minimum so that commands can be executed against the repo.

This makes it possible to run setup_user as an external command

Functions

Set up the bare minimum so that commands can be executed against the repo.

Link to this function

setup_user(user, token \\ nil, credentials \\ nil)

View Source
@spec setup_user(map(), String.t() | nil, [map()] | nil) ::
  {:ok, any(), any()} | {:error, any()}

This makes it possible to run setup_user as an external command

See: Lightning.SetupUtils.setup_user() for more docs.

Examples

iex> kubectl exec -it deploy/demo-web -- /app/bin/lightning eval Lightning.Setup.setup_user(%{email: "td@openfn.org", first_name: "taylor", last_name: "downs", password: "shh12345!"}) :ok