Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alindeman/heroku-buildpack-go

Go Buildpack for Heroku
https://github.com/alindeman/heroku-buildpack-go

Last synced: about 1 month ago
JSON representation

Go Buildpack for Heroku

Awesome Lists containing this project

README

        

# Go Buildpack for Heroku

Sets up a Heroku dyno ready to run a [golang](http://golang.org) application.

## Setup

Create a `script/bootstrap` file that installs the application's dependencies.
Using [gopack](https://github.com/d2fn/gopack) is a popular option.

Create a `script/build` file that builds the application's binaries and places
them in `bin/`.

Create a `Procfile` that runs the binary:

```
web: bin/myapp -p $PORT
```

Configure Heroku to use the buildpack:

```
heroku config:set BUILDPACK_URL=git://github.com/alindeman/heroku-buildpack-go.git
```

Ship it! :shipit:

```
git push heroku master
```