Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevenharman/heroku-buildpack-compile-time-env
Heroku Buildpack to make Config Vars available during Slug compilation.
https://github.com/stevenharman/heroku-buildpack-compile-time-env
buildpack heroku heroku-deployment
Last synced: 2 days ago
JSON representation
Heroku Buildpack to make Config Vars available during Slug compilation.
- Host: GitHub
- URL: https://github.com/stevenharman/heroku-buildpack-compile-time-env
- Owner: stevenharman
- License: mit
- Created: 2022-11-02T14:15:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-19T15:36:24.000Z (about 2 years ago)
- Last Synced: 2025-01-03T15:45:49.163Z (11 days ago)
- Topics: buildpack, heroku, heroku-deployment
- Language: Shell
- Homepage: https://elements.heroku.com/buildpacks/stevenharman/compile-time-env
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# compile-time-env
A Heroku [Buildpack][buildpacks] to make [Config Vars][config-vars] available during Slug compilation.
## How to use it
Create a `.compile-time-env` file in the root of your App/repository.
Add Config Var names you want to export (one per line):```console
$ cat .compile-time-env
SOME_ENV_VAR
# lines starting with # are considered comments, and will be skipped
ANOTHER_VAR
```Add this Buildpack as the first Buildpack in your App.
Or, at least before other Buildpacks that need the Config Vars.```console
$ heroku buildpacks:add --index=1 stevenharman/compile-time-env --app=
```On the next deploy the Config Vars specified in the `.compile-time-env` file will be available in the Slug compilation phase.
## License
This work is licensed under [MIT License](./LICENSE).
Copyright (c) 2022 Steven Harman
[buildpacks]: https://devcenter.heroku.com/articles/buildpacks "Heroku Buildpacks"
[config-vars]: https://devcenter.heroku.com/articles/config-vars "Configuration and Config Vars"