This commit is contained in:
Christopher Cookman 2024-04-15 00:25:36 -06:00
parent ea257d723d
commit 7e4e7f97b5
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

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