This is a scaffolding for a Docker deployable Heroku image. The application itself is your typical Node.js + Express application. It comes with a Grunt build task wired for SASS compilation, Bower dependency injection and JS minification.
npm install
gem install sass
npm install grunt-cli bower -g
Add export NODE_ENV=development
(or production) to your environment.
Database configuration details are defined in your environment as well. Add export DB_USERNAME=username
and export DB_PASSWORD=password
to your environment.
grunt
grunt development
$ 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
For more information about using Node.js on Heroku, see these Dev Center articles: