kanhaiya lal bohra
can't access fast api
hi i have created a api with fast api and i have hosted this on railway and the deployments is finish successful and i also have add port 80 in railway env variable and also have add the variable inside my fast Api buy still can't access. getting server error
23 replies
railway charge me 5$ for two days.
i join hobby plan and after 2 days i cancel my plan and when im trying to rejoin i have no money they are telling your 5$ is used for activation of hobby plan. so no refund of that money that wrong
8 replies
here is my calculations for all students
I am paying 6-7$ before after 5$ discount i pay 1-2 $ so now railway don't have 5$ discount i calculate my cpu and memory usage plus storage that i use and i found that digital ocean 4$ droplet is good for me so do calculation your usage and check which is best for you
13 replies
express
this code is working fine on my local machine but not working on railway why ?
require("dotenv").config();
const bodyParser = require("body-parser");
const TelegramBot = require("node-telegram-bot-api");
const token = process.env.TELEGRAM_TOKEN;
const bot = new TelegramBot(token, { polling: false });
const express = require("express");
const app = express();
app.use(bodyParser.json());
app.post("/alert", function (req, res) {
const { action, value, name } = req.body;
bot.sendMessage(
process.env.TELEGRAM_CHAT_ID,
Alert: \nname :- ${name}\naction :- ${action}\nvalue :- ${value}
);
res.send(req.body);
});
app.get("/", function (req, res) {
res.send("Hello World");
});
app.listen(80);
console.log("Server running at http://localhost:80/");4 replies