diff --git a/index.js b/index.js index 89d89fc..83a2356 100644 --- a/index.js +++ b/index.js @@ -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 = { diff --git a/package.json b/package.json index 4965790..118c63c 100644 --- a/package.json +++ b/package.json @@ -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 (https://chriswang.tech/)", "main": "index.js",