Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Heroku CLI integration with an Anvil build server.
Ruby
branch: master

This branch is 1 commit ahead, 65 commits behind ddollar:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/anvil/heroku
vendor
README.md
Rakefile
init.rb

README.md

heroku-anvil

Heroku CLI integration with an Anvil build server.

Installation

$ heroku plugins:install https://github.com/ddollar/heroku-anvil

Usage

Build a local directory

$ heroku build

Build a local directory with a specific buildpack

$ heroku build -b nodejs
$ heroku build -b https://github.com/heroku/heroku-buildpack-nodejs.git#master

Build a git repository

$ heroku build https://github.com/ddollar/anvil.git

Use -p to create pipelines

$ heroku release $(heroku build . -p 2>/tmp/log/build.log)

Build a tarball using a shell script as a buildpack

$ heroku build http://memcached.googlecode.com/files/memcached-1.4.13.tar.gz \
            -b https://raw.github.com/ddollar/vulcan-recipes/master/memcached.sh

Release to Heroku after building

$ heroku build -r -a myapp
Building ...
Releasing to myapp.heroku.com... done, v42

Release already-built software

$ heroku release $slug_url -a myapp
Releasing to myapp.heroku.com... done, v42

Release to another cloud

$ heroku cloud shadow
$ heroku release $slug_url -a myapp
Releasing to myapp.heroku-shadow.com... done, v42

Advanced Usage

heroku build

Usage: heroku build [SOURCE]

 build software on an anvil build server

 if SOURCE is a local directory, the contents of the directory will be built
 if SOURCE is a git URL, the contents of the repo will be built
 if SOURCE is a tarball URL, the contents of the tarball will be built

 SOURCE will default to "."

 -b, --buildpack URL  # use a custom buildpack
 -e, --runtime-env    # use an app's runtime environment during build
 -p, --pipeline       # pipe compile output to stderr and only put the slug url on stdout
 -r, --release        # release the slug to an app

heroku release

Usage: heroku release SLUG_URL

 release a slug

 -p, --procfile PROCFILE  # use an alternate Procfile to define process types
Something went wrong with that request. Please try again.