Skip to content

Commit

Permalink
Trying to get PORT env variable from Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
javieraviles committed Jun 1, 2018
1 parent 947e59f commit 2efb042
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .example.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NODE_PORT=3000
PORT=3000
NODE_ENV=development
JWT_SECRET=your-secret-whatever
DATABASE_URL=postgres://user:pass@localhost:5432/apidb
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export interface IConfig {
}

const config = {
port: process.env.NODE_PORT || 3000,
port: process.env.PORT || 3000,
debugLogging: process.env.NODE_ENV == 'development',
};

Expand Down

0 comments on commit 2efb042

Please sign in to comment.