Skip to content

Commit

Permalink
Allow PORT env var to set port
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneRifle committed Jan 15, 2019
1 parent 62ca202 commit 895fcbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const path = require('path')

const { config } = require('./lib/express')

const PORT = process.env.MOCKPASS_PORT || 5156
const PORT = process.env.MOCKPASS_PORT || process.env.PORT || 5156

if (!process.env.SINGPASS_ASSERT_ENDPOINT && !process.env.CORPPASS_ASSERT_ENDPOINT) {
throw new Error('Either SINGPASS_ASSERT_ENDPOINT or CORPPASS_ASSERT_ENDPOINT must be set')
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opengovsg/mockpass",
"version": "1.1.0",
"version": "1.2.0",
"description": "A mock SingPass/CorpPass server for dev purposes",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 895fcbc

Please sign in to comment.