[http://yeoman.io/] (Yeoman)
npm install -g yo
[https://github.com/DaftMonk/generator-angular-fullstack] (AngularJS-Fullstack on Github)
npm install -g generator-angular-fullstack
[https://toolbelt.heroku.com/] (Heroku Toolbelt)
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
[http://stackoverflow.com/a/5977494] (Michaël Witrant on Stackoverflow)
git clone git://github.com/apenwarr/git-subtree.git
cd git-subtree
sudo sh install.sh
// Use AngularJS-Fullstack-generator for scaffolding
mkdir my-app
yo angular-fullstack my-app
// Set up git
git init
git add .
git commit -m "Ready to deploy"
// Create Heroku app
heroku create
// Add MongoDB (free plan)
heroku addons:add mongohq:sandbox
// Enable Websocket support (if needed)
heroku labs:enable websockets
// Set Node Environment
heroku config:set NODE_ENV=production
This requires credit card details for your Heroku account.
// Set the remote
heroku git:remote -a my-app
Is it possible to deploy to two heroku apps from one repository? Just switching the remote doesn't seem to do the trick.