i figured it out.
Edit the config/production.js
file and delete/comment the following lines(port, hostname)
var config = {
//port: '3000',
// hostname: '0.0.0.0'
};
Add a app.js
javascript file to your app's root directory, the configs set in this will override production.js
var geddy = require('geddy');
geddy.startCluster({
hostname: process.env.IP || '127.0.0.1',
port: process.env.PORT || '3000',
// you can manually set this to production, or set an environment variable via heroku..
environment: 'production'
// just uncomment the below line, and delete the above line.
// you will need to set an environment variable in heroku by running
// heroku config:set NODE_ENV=production
//environment: process.env.NODE_ENV || 'development'
});
Add a Procfile
text file to your app's root directory
web: node app.js
remove the line for config\secrets.json
in your .gitignore
file - note: This is insecure, on public repo's as it exposes your cookie's secret hash.