summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorRafael Marçalo <raroma09@gmail.com>2022-10-22 21:33:30 +0100
committerRafael Marçalo <raroma09@gmail.com>2022-10-22 21:33:30 +0100
commitfab80a4d43b39839e67e762da19fdb7f9a53502f (patch)
treed9667938a15554e54f22eaae063c286e30974fd1 /app.js
parent4f26ab9c157fe3c395f7e452120a97bc8cb8d8d8 (diff)
Started working on electron environment
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'));