Added configurable port
This commit is contained in:
parent
d1aafe93d0
commit
f4d18fbf79
2 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
|||
{
|
||||
"http": {
|
||||
"port": 3002
|
||||
},
|
||||
"discord": {
|
||||
"token": "<discord bot token>",
|
||||
"client_id": "<discord client id>"
|
||||
|
|
4
index.js
4
index.js
|
@ -148,8 +148,8 @@ app.get('/:templateName/', async (req, res) => {
|
|||
}
|
||||
});
|
||||
|
||||
app.listen(3002, () => {
|
||||
console.log('Beebot app listening on port 3002!');
|
||||
app.listen(config.http.port, () => {
|
||||
console.log(`Beebot app listening on port ${config.http.port}!`);
|
||||
});
|
||||
|
||||
|
||||
|
|
Reference in a new issue