Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update doc links and sample output

  • Loading branch information...
commit e145ef1022f43d351de05239d1c3093035b4bf22 1 parent 3662715
@kr kr authored
Showing with 35 additions and 27 deletions.
  1. +35 −27 README.md
View
62 README.md
@@ -1,34 +1,42 @@
# Heroku Buildpack: Go
-This is a [Heroku buildpack][buildpack] for Go.
+This is a [Heroku buildpack][buildpack] for [Go][go].
-This repository is useful if you want to inspect or
-change the behavior of the buildpack itself. See the [Go
-Buildpack Quickstart][quickstart] for a gentle
-introduction suitable for all Heroku users.
+## Getting Started
+
+Follow the guide at
+<http://mmcgrana.github.com/2012/09/getting-started-with-go-on-heroku.html>.
+
+There's also a hello world sample app at
+<https://github.com/kr/go-heroku-example>.
## Example
- $ find . -type f -print
- ./.godir
- ./Procfile
- ./app.go
-
- $ heroku create --buildpack git://github.com/kr/heroku-buildpack-go.git
- ...
-
- $ git push heroku master
- ...
- -----> Heroku receiving push
- -----> Fetching custom git buildpack... done
- -----> Go app detected
- -----> Using Go 1.0.2
- -----> Running: go get -tags heroku ./...
- -----> Discovering process types
- Procfile declares types -> web
- -----> Compiled slug size is 1.0MB
- -----> Launching... done, v1
- http://pure-sunrise-3607.herokuapp.com deployed to Heroku
+```
+$ ls -A1
+./.git
+./.godir
+./Procfile
+./web.go
+
+$ heroku create -b https://github.com/kr/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.
@@ -37,7 +45,7 @@ The buildpack adds a `heroku` [build constraint][build-constraint],
to enable heroku-specific code. See the [App Engine build constraints article][app-engine-build-constraints]
for more.
-## Hacking
+## Hacking on this Buildpack
To change this buildpack, fork it on GitHub. Push
changes to your fork, then create a test app with
@@ -45,8 +53,8 @@ changes to your fork, then create a test app with
already have an existing app you may use `heroku config:add
BUILDPACK_URL=YOUR_GITHUB_GIT_URL` instead of `--buildpack`.
+[go]: http://golang.org/
[buildpack]: http://devcenter.heroku.com/articles/buildpacks
[quickstart]: http://mmcgrana.github.com/2012/09/getting-started-with-go-on-heroku.html
[build-constraint]: http://golang.org/pkg/go/build/
[app-engine-build-constraints]: http://blog.golang.org/2013/01/the-app-engine-sdk-and-workspaces-gopath.html
-
Please sign in to comment.
Something went wrong with that request. Please try again.