Add port setting (#130)
This commit is contained in:
parent
1ad82e91fb
commit
ceb05e50f6
2 changed files with 3 additions and 1 deletions
2
index.js
2
index.js
|
@ -195,4 +195,4 @@ app.use(function (err, req, res, next) {
|
|||
if (err && err.message == "Response timeout") res.status(500).send('Internal server error! (Timed out)')
|
||||
})
|
||||
|
||||
app.listen(2000, () => console.log("Site online!"))
|
||||
app.listen(app.config.port, () => console.log(`Site online on port ${app.config.port}`))
|
|
@ -2,6 +2,8 @@
|
|||
// This isn't a JSON because you can't leave comments on them, ew
|
||||
|
||||
module.exports = {
|
||||
|
||||
port: 2000, // Port to host website on
|
||||
|
||||
endpoint: "http://boomlings.com/database/", // Server endpoint to send requests to
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue