Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinguet62/heroku-buildpack-exec
:runner: Heroku buildpack to execute Shell command during build process
https://github.com/pinguet62/heroku-buildpack-exec
heroku heroku-buildpack
Last synced: 13 days ago
JSON representation
:runner: Heroku buildpack to execute Shell command during build process
- Host: GitHub
- URL: https://github.com/pinguet62/heroku-buildpack-exec
- Owner: pinguet62
- Created: 2018-03-19T14:32:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-19T16:36:14.000Z (almost 7 years ago)
- Last Synced: 2024-11-07T20:48:31.491Z (2 months ago)
- Topics: heroku, heroku-buildpack
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Heroku Buildpack: Exec
Run custom commands during the build process.
## Usage
1. **Register buildpack**, in correct order.
Example: `heroku buildpacks:add --index 1 https://github.com/pinguet62/heroku-buildpack-exec`
2. Create `EXEC_CMD` **config variable**.
Example: `echo 'web: npm start -- --environment prod --port $PORT' > Procfile`## Notes
* The script is executed into _build_ folder (see [doc](https://devcenter.heroku.com/articles/buildpack-api#bin-compile))
## Output logs
```log
-----> Exec buildpack app detected
-----> "EXEC_CMD" environment variable found
Executing "EXEC_CMD" command...```
where `command_logs` is the output logs generated by the command.## How it works?
Based on `eval` command.
In practice, this buildpack execute `eval "$EXEC_CMD"` command.
## Complex command
See https://github.com/weibeld/heroku-buildpack-run