livebook/config
Frank Hunleth 52e5273401
Support passing an MFA for customizing shutdown (#1519)
This commit lets you customize Livebook shutdown to gracefully power
off. One use case is for Nerves-based devices that need to do more than
call `System.stop/0` to power off.

This doesn't change the `LIVEBOOK_SHUTDOWN_ENABLED` environment
variable. It still works the same.

The `:shutdown_enabled` configuration is now `:shutdown_callback`. Valid
values are `nil` or an MFA. An unset or `nil` callback hides the
shutdown button in the UI.
2022-11-10 18:09:01 +01:00
..
config.exs Support passing an MFA for customizing shutdown (#1519) 2022-11-10 18:09:01 +01:00
dev.exs Support passing an MFA for customizing shutdown (#1519) 2022-11-10 18:09:01 +01:00
prod.exs Serve iframes from another local port when running on http (#989) 2022-02-08 14:45:58 +01:00
runtime.exs Encapsulate compile and runtime configuration (#577) 2021-10-05 00:49:01 +02:00
test.exs Minor Hub improvements (#1357) 2022-08-24 12:35:28 -03:00