0.1.14 • Published 11 years ago
heroku-publisher v0.1.14
heroku-publisher
A CLI tool to publish static websites to Heroku.
Installation
Just run
$ npm install heroku-publisherUse -g if you want to use this as a CLI tool.
Usage
From CLI
Running
$ heroku-publisherwill 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}"