diff --git a/default.env b/default.env index 69589a9..4327a7b 100644 --- a/default.env +++ b/default.env @@ -1,4 +1,5 @@ SPACENAME="mudir" +SPACEPORT=8000 DATABASE_HOST="localhost" DATABASE_USER="root" DATABASE_PASSWORD="abcd1234" diff --git a/src/app.js b/src/app.js index 670015c..88c15b6 100644 --- a/src/app.js +++ b/src/app.js @@ -8,6 +8,7 @@ var ip = require("ip"); var controller = require("./app.controller"); var __const = require("./constants"); var workspaceName = process.env.SPACENAME +var appPort = process.env.SPACEPORT var app = express(); controller.createdb(); @@ -163,4 +164,4 @@ app.post("/stWorkspace", function(req, res) { res.redirect("/workspaces/" + req.session.currGPU); }); }); -app.listen(8000); +app.listen(appPort);