Brahmin
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
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