Giter Site home page Giter Site logo

build-go-example's Introduction

Simple Go script demonstrating use of the Heroku Platform API build resource

How to use:

$ git clone [email protected]:heroku/buildapi-go-example.git
...
$ go get
$ go build build.go
$ heroku create
Creating limitless-fjord-5604... done, stack is cedar
...
$ ./build -app limitless-fjord-5604 -archive https://github.com/heroku/node-js-sample/archive/master.tar.gz
.........
-----> Node.js app detected
-----> Requested node range:  0.10.x
-----> Resolved node version: 0.10.28
-----> Downloading and installing node
...

This will use the API key in your .netrc file, created with the standard heroku login command.

If you want to specify a key explicitly, use the -apikey argument

$ ./build -apikey <api-key> -app limitless-fjord-5604 -archive https://github.com/heroku/node-js-sample/archive/master.tar.gz

You can get your API key by running heroku auth:token or from the account page on Dashboard.

build-go-example's People

Contributors

friism avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

naaman

build-go-example's Issues

Can't assemble program

MBP-Vitaly:buildapi-go-example dyatlov$ go version
go version go1.4.1 darwin/amd64
MBP-Vitaly:buildapi-go-example dyatlov$ go get
# github.com/heroku/buildapi-go-example
./build.go:44: cannot use struct { URL *string "json:\"url,omitempty\""; Version *string "json:\"version,omitempty\"" } literal (type *struct { URL *string "json:\"url,omitempty\""; Version *string "json:\"version,omitempty\"" }) as type struct { URL *string "json:\"url,omitempty\""; Version *string "json:\"version,omitempty\"" } in field value

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.