Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Go support for Heroku
Shell Go
Branch: uni
Pull request Compare This branch is 19 commits ahead, 130 commits behind heroku:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
test/src/mytest
README.md
compile-test.sh
detect-test.sh

README.md

Heroku Buildpak: Go

This is a Heroku buildpack for Go apps. It uses goinstall. This repository is useful if you want to inspect or change the behavior of the buildpack itself. See the Go Buildpack Quickstart for a gentle introduction suitable for Heroku users.

Usage

Example usage for an app already stored in git:

$ find . -type f -print
./.gitignore
./Procfile
./src/hello/app.go

$ heroku create -s cedar --buildpack http://github.com/kr/heroku-buildpack-go.git
...

$ git push heroku master
...
-----> Heroku receiving push
-----> Go app detected
-----> Using Go version release.r60.2
-----> Go version release.r60.2 cached; Skipping clone
-----> Go version release.r60.2 build; Skipping build
-----> Running goinstall
-----> Discovering process types
       Procfile declares types -> web
-----> Compiled slug size is 912K
-----> Launching... done, v1
http://pure-sunrise-3607.herokuapp.com deployed to Heroku

The buildpack will detect your app as Go if it has a .go file in the src directory, or any subdirectory.

Hacking

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

(example forthcoming)

Something went wrong with that request. Please try again.