var peerPort = 9000;

var PeerServer = require('peer').PeerServer;
var server = new PeerServer({port: peerPort, path: '/myapp'});
var peerPort = process.env.PORT || 9000;

var PeerServer = require('peer').PeerServer;
var server = new PeerServer({port: peerPort, path: '/myapp'});
set up peer server for use on heroku