Skip to content

darrinholst/heroku-nodejs-build

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

heroku-nodejs-build

Scripts to help build, package, release and deploy node apps to Heroku

Installation

npm i -d heroku-nodejs-build

Requirements

  • Docker installed
  • A script to build and test your application located at scripts/verify

Usage

In package.json add the following scripts

  "scripts": {
    "verify": "scripts/verify",
    "package": "node_modules/heroku-nodejs-build/scripts/package",
    "release": "node_modules/heroku-nodejs-build/scripts/release",
    "deploy": "node_modules/heroku-nodejs-build/scripts/deploy"
  }

To release a new version of your app run

npm run package && \
GITHUB_REPO=your/github-repo \
GITHUB_TOKEN=your-github-token \
npm run release

Get a github token here

To deploy a version of your app run

RELEASE_TAG=the-tag or "latest" \
GITHUB_REPO=your/github-repo \
GITHUB_TOKEN=your-github-token \
HEROKU_APP=your-heroku-app \
HEROKU_TOKEN=your-heroku-token \
npm run deploy

Get a heroku token with heroku auth:token

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published