Skip to content

Commit

Permalink
allowed arbitrary port from the environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mw866 committed Aug 8, 2021
1 parent 6f9c109 commit b92e9fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var path = require('path');
var http = require('http');

var oas3Tools = require('oas3-tools');
var serverPort = 8080;
var serverPort = process.env.PORT || 8080;

// swaggerRouter configuration
var options = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mw866/petstore-api",
"version": "1.0.6",
"version": "1.0.7",
"description": "This is a Petstore API service built on Node.",
"author": "Chris Wang <dev@chriswang.tech> (https://chriswang.tech/)",
"main": "index.js",
Expand Down

0 comments on commit b92e9fa

Please sign in to comment.