app-cloner-heroku

0.1.1 • Public • Published

app-cloner-heroku

A node module for deploying app.json apps to Heroku. Designed to work on the server, the browser, and the command line.

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install app-cloner-heroku --save

Usage

var cloner = require("app-cloner-heroku").new({
  repo: "zeke/slideshow#master",
  token: process.env.HEROKU_OAUTH_SECRET,
  app: "my-new-slideshow"
})
 
cloner.on("create", function(build){
  console.log(build)
})
 
cloner.on("pending", function(){
  console.log(".")
})
 
cloner.on("succeeded", function(build){
  console.log(build)
})
 
cloner.on("error", function(error){
  console.error(error)
})
 
cloner.start()
 

Tests

npm install
npm test

Dependencies

  • dotenv: Loads environment variables from .env
  • flatten: Flatten arbitrarily nested arrays into a non-nested list of non-array items
  • github-url-to-object: Extract user, repo, and other interesting properties from GitHub URLs
  • heroku-auth-finder: Derive a Heroku API key from process.env or ~/.netrc
  • heroku-client: A wrapper for the Heroku v3 API
  • ini: An ini encoder/decoder for node
  • is-url: Check whether a string is a URL.
  • redact-url: Redact or remove authentication data from URLs
  • superagent: elegant & feature rich browser / node HTTP with a fluent API

Dev Dependencies

  • mocha: simple, flexible, fun test framework

License

MIT

Colophon

Readme

Keywords

Package Sidebar

Install

npm i app-cloner-heroku

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • zeke