lilliiiillil
lilliiiillil
RRailway
Created by lilliiiillil on 4/18/2024 in #✋|help
Can't delete environment
No description
13 replies
RRailway
Created by lilliiiillil on 4/18/2024 in #✋|help
Can't delete environment
fe8ef5f3-0946-465b-ae03-93d637a10bc7
13 replies
RRailway
Created by lilliiiillil on 3/29/2024 in #✋|help
Create new environment
No description
6 replies
RRailway
Created by lilliiiillil on 3/29/2024 in #✋|help
Create new environment
No description
6 replies
RRailway
Created by lilliiiillil on 3/29/2024 in #✋|help
Create new environment
Ok it appears with Cmd+K 🤨
6 replies
RRailway
Created by lilliiiillil on 3/8/2024 in #✋|help
The start command is invalid.
Seems like its gone. Thanks for your support!
13 replies
RRailway
Created by lilliiiillil on 3/8/2024 in #✋|help
The start command is invalid.
You've never encountered this?
13 replies
RRailway
Created by lilliiiillil on 3/8/2024 in #✋|help
The start command is invalid.
So yeah it has always been there, its just way more frequent now
13 replies
RRailway
Created by lilliiiillil on 3/8/2024 in #✋|help
The start command is invalid.
A few hours, it was only happening once in a while before
13 replies
RRailway
Created by lilliiiillil on 3/8/2024 in #✋|help
The start command is invalid.
Since its every 5 min I might just use smthng like node-cron and leave the service running 24/7
13 replies
RRailway
Created by Yomyam on 11/16/2023 in #✋|help
Control webhook event
Okay for anyone wondering it's actually as simple as that using JS & Express
import express from "express";
import cors from "cors";

const WEBHOOK_URL = process.env.WEBHOOK_URL
const SERVICE_URL = process.env.SERVICE_URL

const port = process.env.PORT || 3000;
const app = express();
app.use(cors());
app.use(express.json());

app.get("/", (req, res) => {
res.send("Hello World!");
});

app.post("/", async (req, res) => {
const body = req.body;
if (body.type !== "CRASHED") {
res.send("OK");
return;
}

fetch(WEBHOOK_URL, {
body: JSON.stringify({
content: `Crashed \n\n${SERVICE_URL}`,
}),
headers: {
"Content-Type": "application/json",
},
method: "POST",
}).then(() => {
res.send("OK");
});
});

app.listen(port, () => {
console.log("Server listening on port " + port);
});
import express from "express";
import cors from "cors";

const WEBHOOK_URL = process.env.WEBHOOK_URL
const SERVICE_URL = process.env.SERVICE_URL

const port = process.env.PORT || 3000;
const app = express();
app.use(cors());
app.use(express.json());

app.get("/", (req, res) => {
res.send("Hello World!");
});

app.post("/", async (req, res) => {
const body = req.body;
if (body.type !== "CRASHED") {
res.send("OK");
return;
}

fetch(WEBHOOK_URL, {
body: JSON.stringify({
content: `Crashed \n\n${SERVICE_URL}`,
}),
headers: {
"Content-Type": "application/json",
},
method: "POST",
}).then(() => {
res.send("OK");
});
});

app.listen(port, () => {
console.log("Server listening on port " + port);
});
13 replies
RRailway
Created by Yomyam on 11/16/2023 in #✋|help
Control webhook event
Mb I meant to tag @NightKunGz ヅ
13 replies
RRailway
Created by Yomyam on 11/16/2023 in #✋|help
Control webhook event
Hello @Fragly, do you mind sharing your solution? I'd like to filter events sent on my Discord channel as well 😃
13 replies