fix that
This commit is contained in:
parent
ea257d723d
commit
7e4e7f97b5
2
index.js
2
index.js
|
@ -188,7 +188,7 @@ let slowmode_categories = [];
|
|||
client.on("ready", async () => {
|
||||
console.log(`${colors.magenta("[DEBUG]")} Environment variables: ${JSON.stringify(process.env)}`)
|
||||
// Get port for webserver from environment over config file (for running on pterodactyl/other panels)
|
||||
var port = process.env.PORT || config.port;
|
||||
var port = process.env.SERVER_PORT || config.port;
|
||||
// Start webserver
|
||||
if (port) app.listen(port, () => {
|
||||
console.log(`${colors.cyan("[INFO]")} Webserver started on port ${port}`)
|
||||
|
|
Loading…
Reference in a new issue