sbernstein

Installation

npm install && bower install gem install sass

Setup

Define your environment

Add export NODE_ENV=development (or production) to your environment.

Set up your database

Database configuration details are defined in your environment as well. Add export DB_USERNAME=username and export DB_PASSWORD=password to your environment.

Building

gulp

Live Building

gulp dev

Setting up Heroku with Docker

$ heroku create APP_NAME
$ heroku config:set NODE_ENV=production
$ heroku config:set DB_USERNAME=YOUR_DB_USERNAME
$ heroku config:set DB_PASSWORD=YOUR_DB_PASSWORD 
$ heroku config:set DB_HOST=YOUR_DB_HOST
$ heroku plugins:install heroku-docker
$ heroku docker:init
$ heroku docker:release
$ heroku open

Running in local Docker VM

$ docker-machine start default
$ eval $(docker-machine env default)
$ docker-compose up web

Deploying

$ heroku docker:release

Documentation

For more information about using Node.js on Heroku, see these Dev Center articles: