Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hashnuke/heroku-buildpack-zero
My attempt at writing the smallest buildpack (112 chars)
https://github.com/hashnuke/heroku-buildpack-zero
heroku-buildpack
Last synced: 24 days ago
JSON representation
My attempt at writing the smallest buildpack (112 chars)
- Host: GitHub
- URL: https://github.com/hashnuke/heroku-buildpack-zero
- Owner: HashNuke
- Created: 2014-04-10T12:39:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-10T12:53:27.000Z (over 10 years ago)
- Last Synced: 2024-10-04T21:34:36.165Z (about 1 month ago)
- Topics: heroku-buildpack
- Language: Shell
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Heroku Buildpack Zero (for static sites)
My attempt at writing the smallest buildpack. The goal was to stay within the 150 chars limit. The whole buildpack is 112 characters. And it [fits in a tweet](https://twitter.com/HashNuke/status/454238654446043136).
I also [tweeted](https://twitter.com/HashNuke/status/454239536642400257) about it.
```
$ wc -m bin/*
0 bin/compile
21 bin/detect
91 bin/release
112 total
```This uses a single threaded web server. I'm trying very hard to crack a joke. Please do not host anything serious with this buildpack :)
## Usage
#### Create a Heroku app with this buildpack
```
heroku create --buildpack "https://github.com/HashNuke/heroku-buildpack-zero.git"
```#### Set the buildpack of an existing Heroku app
```
heroku config:add BUILDPACK_URL="https://github.com/HashNuke/heroku-buildpack-zero.git"
```## Notes
#### Other stuff I tried to do to fit in 150 chars
I wrote the following, which writes a buildpack on your local workstation (creating a repo for the buildpack was left to the user). But it was 152 chars. 2 extra.
```
mkdir bin;cd bin;echo 'echo 0'>detect;touch compile;printf -- "printf -- '---\\ndefault_process_types:\\n web:python -m SimpleHTTPServer \\$PORT'">release
```