Skip to content

stephanos/heroku-buildpack-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Buildpack: Go

This is a Heroku buildpack for Go.

Preparation

This buildpack currently depends on the user env compile labs addon. To enable run:

heroku labs:enable user-env-compile

Configuration (optional)

Set GO_VERSION to set a custom Go version:

heroku config:set GO_VERSION=`1.1.2`

Set GO_PATH to define a custom GOPATH:

heroku config:set GO_PATH=`...`

Example

$ ls -A1
./.git
./Procfile
./web.go

$ heroku create -b https://github.com/101loops/heroku-buildpack-go.git
...

$ git push heroku master
...
-----> Fetching custom git buildpack... done
-----> Go app detected
-----> Installing Go 1.0.3... done
       Installing Virtualenv... done
       Installing Mercurial... done
       Installing Bazaar... done
-----> Running: go get -tags heroku ./...
-----> Discovering process types
       Procfile declares types -> web
-----> Compiled slug size: 1.0MB
-----> Launching... done, v5
       http://pure-sunrise-3607.herokuapp.com deployed to Heroku

The buildpack will detect your repository as Go if it contains a .go file.

The buildpack adds a heroku build constraint, to enable heroku-specific code. See the App Engine build constraints article for more.

Hacking on this Buildpack

To change this buildpack, fork it on GitHub. Push changes to your fork, then create a test app with --buildpack YOUR_GITHUB_GIT_URL and push to it. If you already have an existing app you may use heroku config:add BUILDPACK_URL=YOUR_GITHUB_GIT_URL instead of --buildpack.

About

Go support for Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Racket 80.0%
  • Shell 19.1%
  • Go 0.9%