npm.io
0.1.14 • Published 11 years agoCLI

heroku-publisher

Licence
MIT
Version
0.1.14
Deps
6
Vulns
5
Weekly
0

heroku-publisher

A CLI tool to publish static websites to Heroku.

Installation

Just run

$ npm install heroku-publisher

Use -g if you want to use this as a CLI tool.

Usage

From CLI

Running

$ heroku-publisher

will try to create a Heroku application with the name of the current directory, or to use the existing one. You can pass -n APP_NAME to change the application name.

By default, this will serve your ./public directory.

If you need to build your project before publishing, pass the -b option with your compile command:

$ heroku-publisher publish -n "grunt compile"
Programatically
options = { retry: true, appName: 'myherokuapp', build: 'grunt compile:dev' }
publisher.publish options, (err, app) ->
  console.log "App published to #{app.web_url}"

Keywords