Skip to content

Commit 84a1e9a

Browse files
authored
Merge pull request #37 from marmelab/server_port
[RFR] Allow to specify port
2 parents 62a5592 + 433fb03 commit 84a1e9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/json-graphql-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var JsonGraphqlServer = require('../lib/json-graphql-server.node.min').default;
77

88
var dataFilePath = process.argv.length > 2 ? process.argv[2] : './data.json';
99
var data = require(path.join(process.cwd(), dataFilePath));
10-
var PORT = 3000;
10+
var PORT = process.env.NODE_PORT || 3000;
1111
var app = express();
1212

1313
app.use(cors());

0 commit comments

Comments
 (0)