diff options
author | Rafael Marçalo <raroma09@gmail.com> | 2022-10-22 21:33:30 +0100 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2022-10-22 21:33:30 +0100 |
commit | fab80a4d43b39839e67e762da19fdb7f9a53502f (patch) | |
tree | d9667938a15554e54f22eaae063c286e30974fd1 /app.js | |
parent | 4f26ab9c157fe3c395f7e452120a97bc8cb8d8d8 (diff) |
Started working on electron environment
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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')); |