A generator for Yeoman that sets up heroku hosting for you by creating a
Procfile
and setting up a node-based static http server using
static.
Once there are placeholders in Yeoman, this will automatically rewire your Gruntfile to automatically copy the required files. For now, you have to manually adjust your build step for this to work comfortably.
- Make sure you have yo installed:
npm install -g yo
- Install the generator:
npm install -g generator-heroku
- Make sure you are in the root of your existing Yeoman application.
- Run:
yo heroku
--dist
lets you choose a distribution directory other than the defaultdist
.