grunt-express-server
grunt-express-server copied to clipboard
Specifying a port is ignored
When I specify a port e.g.
express: {
options: {
script: './app.js',
port: 8080
},
dev: {
options: {}
}
}
The port is ignored and grunt-express-server
uses the port number from my application. Any clues?
Does your app look for the port in the environment? It should contain a line somethng like:
var MY_PORT = process.env.PORT || 8000;