Redirect distribution for
Go
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Godeps
.gitignore
LICENCE
Procfile
README.md
Vagrantfile
heroku.tf
web.go

README.md

re-dist-ghr

Redirect distribution for tcnksm/ghr

Description

To enable user to downlaod packages, with same url and same command.

$ L=/usr/local/bin/ghr && curl -sL -A "`uname -sp`"  http://ghr.herokuapp.com/ghr.zip | zcat >$L && chmod +x $L

http://ghr.herokuapp.com/ will attempt to detect your OS and CPU architecture based on the User-Agent, then redirect you to the latest release for your platform.

URL

Artifacts is hosted on github relase page, https://github.com/tcnksm/ghr/releases/download/${VERSION}/ghr_${VERSION}_${OS}_${ARCH}.zip

Terraform

To create and update application on Heroku, use Terraform

To test:

$ terraform plan -var heroku_email=$HEROKU_EMAIL -var heroku_api_key=$HEROKU_API_KEY

To create and update:

$ terraform apply -var heroku_email=$HEROKU_EMAIL -var heroku_api_key=$HEROKU_API_KEY

Config

To run this application, need to set some environmetal variables:

These variables are set by Terraform

Test

After setting environmental variable, just execute:

$ go run web.go

Licence

MIT

Author

tcnksm