eriktoor
eriktoor
RRailway
Created by eriktoor on 11/12/2024 in #✋|help
Run a uvicorn python app on Railway
In the past I have run multiple express apps with const PORT = parseInt(process.env.PORT '') 8000 app.listen(PORT, '0.0.0.0', () => { console.log('NODE_ENV: ', process.env.NODE_ENV) console.log('listen port ' + PORT) }) I tried to do the sae thing in uvicorn and run my app like this PORT = int(os.getenv("PORT", "3000")) if name == "main": import uvicorn uvicorn.run(app, host="0.0.0.0", port=PORT) but my app is not working. Any idea what I am doing wrong? This is my app https://railway.app/project/54f3e95e-8713-41a2-991f-af3046b64747/service/5b305d04-6b17-4767-bab6-1fe015d8b8dd
10 replies
RRailway
Created by eriktoor on 1/5/2024 in #✋|help
I just want want Railway to be My API Layer
Right now I have a mobile app and have been using Railway as a CRUD layer / backend layer that sits atop a managed 3rd party DB. If hypothetically I grew 10k users and want horizontal scaling how could I do this with Railway? When the pro-plan says 20/seat what is the seat? And how would I scale horizontally and what would be the cheapest way to do that?
17 replies