Run several processes on a free plan.
ras7le
HOBBYOP

10 months ago

Hi!
I have a Python Flask project deployed on Railway. My Procfile contains:

web: gunicorn app:app

worker: python bot.py

The web process runs fine, but my Telegram bot (worker) does not seem to start automatically.
Does Railway support running both web and worker processes simultaneously from a single service?
If not, what is the recommended way to run both a web server and a long-running background process (like a Telegram bot) in production on Railway?

Is the reason in free plan? I mean i would definitely buy an upgrade but since im testing right im just wondering about that.

Thank you!

$10 Bounty

3 Replies

10 months ago

You would need to setup your entrypoint for the other process, likely in a new service.


Status changed to Awaiting User Response Railway 10 months ago


ras7le
HOBBYOP

10 months ago

okay, thanks. Then i got the question, if u use paid trial will my bot work like it is right now?


Status changed to Awaiting Railway Response Railway 10 months ago


ras7le

okay, thanks. Then i got the question, if u use paid trial will my bot work like it is right now?

sim
FREE

9 months ago

The resources on the hobby plan is better than the trial so check this out https://docs.railway.com/reference/pricing/plans#default-plan-resources. I do not know what the limit for free but this must be better performance only.


Loading...