heroku-publisher

0.1.14 • Public • Published

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: trueappName: 'myherokuapp'build: 'grunt compile:dev' }
publisher.publish options(err, app) ->
  console.log "App published to #{app.web_url}"

Readme

Keywords

Package Sidebar

Install

npm i heroku-publisher

Weekly Downloads

2

Version

0.1.14

License

MIT

Last publish

Collaborators

  • danhper