Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryandotsmith/null-buildpack
https://github.com/ryandotsmith/null-buildpack
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryandotsmith/null-buildpack
- Owner: ryandotsmith
- License: mit
- Created: 2011-12-01T07:26:40.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T03:27:54.000Z (over 4 years ago)
- Last Synced: 2025-01-10T08:18:19.830Z (10 days ago)
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 201
- Watchers: 9
- Forks: 116
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Null Buildpack
This buildpack was originally designed to run Go programs on Heroku. The idea
is that you cross-compile your Go program for Linux and then push you binary
to Heroku using Null Buildpack. Additionally I like to use the Platform
Deployment API to avoid having to push my (often times large) repo to Heroku.Heroku buildpacks take a base Linux server and prepare it for your application.
For example, if you are deploying a Ruby app, the Ruby Buildpack will install
Ruby, Bundler, Node.js, and other things. The Ruby Buildpack will also run
scripts when you deploy your app; for example: installing dependencies and
compiling css/js assets. Sometimes you don't need any of that and you
simply wish to have a bare Linux install. Since the Null Buildpack
doesn't do anything, it is very fast when compared to other buildpacks!Null Buildpack is also a great starting place for developing your own buildpack.
## Examples
Create a directory for our Heroku App:
```bash
$ mkdir app && cd app
```Create a simple binary to run on our Heroku App:
```bash
$ echo -e "#\!/usr/bin/env bash\n echo hi" > ./test
$ echo -e "test: ./test" > Procfile
$ chmod +x ./test
$ ./test
hi
```Create an app with the Null Buildpack
```bash
$ git init; git add .; git commit -am 'init'
$ heroku create --buildpack http://github.com/ryandotsmith/null-buildpack.git
$ git push heroku master
```Run the program:
```bash
$ heroku run test
Running `test` attached to terminal... up, run.8663
hi
```