https://github.com/renderedtext/sys2app
Sys2app - System environment to Application environment
https://github.com/renderedtext/sys2app
Last synced: 2 days ago
JSON representation
Sys2app - System environment to Application environment
- Host: GitHub
- URL: https://github.com/renderedtext/sys2app
- Owner: renderedtext
- License: apache-2.0
- Created: 2018-06-13T15:58:32.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-20T14:02:04.000Z (over 1 year ago)
- Last Synced: 2025-04-17T12:43:36.884Z (about 1 year ago)
- Language: Elixir
- Size: 16.6 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).