We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 62a5592 + 433fb03 commit 84a1e9aCopy full SHA for 84a1e9a
bin/json-graphql-server.js
@@ -7,7 +7,7 @@ var JsonGraphqlServer = require('../lib/json-graphql-server.node.min').default;
7
8
var dataFilePath = process.argv.length > 2 ? process.argv[2] : './data.json';
9
var data = require(path.join(process.cwd(), dataFilePath));
10
-var PORT = 3000;
+var PORT = process.env.NODE_PORT || 3000;
11
var app = express();
12
13
app.use(cors());
0 commit comments