https://github.com/renderedtext/sys2app
Sys2app - System environment to Application environment
https://github.com/renderedtext/sys2app
Last synced: 12 months ago
JSON representation
Sys2app - System environment to Application environment
- Host: GitHub
- URL: https://github.com/renderedtext/sys2app
- Owner: renderedtext
- Created: 2018-06-13T15:58:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-20T04:40:59.000Z (about 1 year ago)
- Last Synced: 2025-02-20T05:29:28.293Z (about 1 year ago)
- Language: Elixir
- Size: 11.7 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sys2app - System Environment to Application Environment
Sys2app is a library application designed to be the first dependency started in your Elixir application. It sets up the application environment based on the system environment or other sources, effectively enabling run-time configuration.
## Features
- **Run-time Configuration**: Sets up the application environment dynamically at runtime.
- **Callback Execution**: Executes a designated callback to configure the environment before other dependencies are started.
- **Supervisor Integration**: Integrates with the Elixir supervisor to ensure the callback is executed in the correct context.
## Usage
Configure the callback in your config.exs or environment-specific configuration files:
```elixir
config :sys2app,
callback: {YourModule, :your_callback_function, []}
```
## License
This software is licensed under [the Apache 2.0 license](LICENSE).