Add port setting (#130)

This commit is contained in:
Ed 2020-12-15 06:09:22 +00:00 committed by GitHub
parent 1ad82e91fb
commit ceb05e50f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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}`))

View file

@ -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