add port env

This commit is contained in:
LBlend committed 2022-03-17 22:58:04 +01:00
1 parent 7e4a86b2ea
commit b56e0a5fdc
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@ const app = express();
const webhookSecret = process.env.STRIPE_WEBHOOK_SECRET;
const webhookUrl = process.env.WEBHOOK_URL;
const port = process.env.PORT;
const sendToDiscord = (message) => {
const discordPayload = {
@@ -37,4 +38,4 @@ app.post(
}
);
app.listen(4242, () => console.log("Running on port 4242"));
app.listen(port, () => console.log(`Running on port ${port}`));