Skip to content

Commit

Permalink
fix: configure port
Browse files Browse the repository at this point in the history
  • Loading branch information
m.alhaddad committed Jul 21, 2022
1 parent c1d0601 commit ac3d9e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions default.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SPACENAME="mudir"
SPACEPORT=8000
DATABASE_HOST="localhost"
DATABASE_USER="root"
DATABASE_PASSWORD="abcd1234"
Expand Down
3 changes: 2 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -163,4 +164,4 @@ app.post("/stWorkspace", function(req, res) {
res.redirect("/workspaces/" + req.session.currGPU);
});
});
app.listen(8000);
app.listen(appPort);

0 comments on commit ac3d9e6

Please sign in to comment.