forked from heroku/heroku-buildpack-go
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Go language pack | ||
|
||
*Use* | ||
|
||
$ cat all.sh | ||
#!/bin/sh | ||
set -e | ||
GOPATH="$PWD" | ||
export GOPATH | ||
goinstall ./src/prettydemo/prettydemo | ||
|
||
$ heroku create --stack cedar | ||
$ heroku config:add LANGUAGE_PACK_URL="https://user:pass@github.com/heroku/language-pack-go.git" | ||
$ git push heroku master | ||
|
||
*Go versions* | ||
|
||
You can use whichever version of Go you like; The default is `release.r59`. This language pack builds Go on your first deploy according to the `GOVERSION` environment variable set. You can change this with `heroku config:add GOVERSION=weekly.2011-1-1` for example, or even a SHA. | ||
|
||
Once built, the language pack will keep it cached for future deploys, until you change the GOVERSION. | ||
|
||
*Demo* | ||
You can find the demo here: | ||
https://gist.github.com/e4c1ceeb90624acc45b9 | ||
|
||
*TODO* | ||
|
||
Create a cron job to build releases and cache in this repo to avoid the build step for tagged releases. |