summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.js b/app.js
index 115b0bf..d5e08a6 100644
--- a/app.js
+++ b/app.js
@@ -4,7 +4,8 @@
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
-const PORT = 7777;
+const PORT = module.exports.PORT = process.env.PORT || 3000;
+
// set the public folder to public acess and added a body parser
app.use(express.static('public'));