use process.env.PORT so it can be deployed to Heroku

This commit is contained in:
Bilal Catic
2019-09-11 11:23:05 +02:00
parent 0b78254573
commit 202c4e441e
2 changed files with 2 additions and 2 deletions

View File

@@ -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}`;

View File

@@ -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)