From 202c4e441ed0bce02d2a8ad08efd1d80bf5a1586 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Wed, 11 Sep 2019 11:23:05 +0200 Subject: [PATCH] use process.env.PORT so it can be deployed to Heroku --- app/config/appConfig.js | 2 +- development.env | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config/appConfig.js b/app/config/appConfig.js index 57b42df..507403e 100644 --- a/app/config/appConfig.js +++ b/app/config/appConfig.js @@ -1,4 +1,4 @@ -const APP_PORT = process.env.APP_PORT || 5000; +const APP_PORT = process.env.PORT || 5000; const APP_BASE_URL = process.env.APP_BASE_URL || "http://localhost"; const APP_URL = `${APP_BASE_URL}:${APP_PORT}`; diff --git a/development.env b/development.env index 820ad3c..47d75c3 100644 --- a/development.env +++ b/development.env @@ -5,7 +5,7 @@ DB_PORT=Database port SEQUELIZE_LOGGING=0- no sequelize logging, 1- log to the console -APP_PORT=Port for the app, defaults to 5000 +PORT=Port for the app, defaults to 5000 APP_BASE_URL=base url for the app AMAZON_ACCES_KEY_ID=(your-key-here)