Getting NODE JS to run on specific Port

So I have an application that is executed by forever.

forever start -l log.log -e err.log -o out.log -a /[path to node js]

I have it set to listen on port 3015 but when I run netstat -a, the port is not being listened on.

I'm using NGINX to forward all 80/443 requests to 127.0.0.1:3015 but it gives a 502 Bad Gateway error as it's unable to deliver to port 3015.

I'm unsure of how to get this app to listen on 3015!!!

EDIT: This is what is in the js app

program
  .version(version)
  .option('-p, --port <port>', 'Port to run on', 3015)

https.createServer(ssl, app).listen(app.get('port'), function(){
  console.log('Express server listening on port %s in %s mode', app.get('port'), app.get('env'));
});

EDIT: Here is what it says in the error log:

error: Forever detected script exited with code: 1
error: Forever restarting script for 1 time

You should check for errors in the "listen" callback function. Something like this:

https.createServer(ssl, app).listen(app.get('port'), function(err){
  if (err) {
    console.log(err);
    return;
  }
  console.log('Express server listening on port %s in %s mode', app.get('port'), app.get('env'));
});

And tell us if an error occured.