okvivi/go-server-on-heroku — pull request #1 by adamonduty (2013-06-04 20:21:25+00:00)
Title: Successful push on heroku

I had similar problems understanding and using the heroku go buildpack.

You may have already figured this out, but I wanted to update your app such that it actually works on heroku.

I also wanted to preserve a standard go workspace layout because I wanted go install to work properly.

My strategy is to use symlinks for the second-level package directories. This allows the go buildpack to do its thing with minimal work on my part. I also made a few minor changes such as changing the package name in the shared directory to `shared` instead of `models` because the code wouldn't compile otherwise.

Here's the proof:

$ git push heroku master
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 497 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)

-----> Fetching custom git buildpack... done
-----> Go app detected
-----> Using Go 1.1
-----> Running: go get -tags heroku ./...
-----> Discovering process types
Procfile declares types -> web, worker

-----> Compiled slug size: 1.6MB
-----> Launching... done, v7
http://nameless-thicket-4488.herokuapp.com deployed to Heroku

To git@heroku.com:nameless-thicket-4488.git
b27d5fb..3f23cf0 master -> master