Run several processes on a free plan.
ras7le
HOBBYOP

a year 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

a year ago

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


Status changed to Awaiting User Response Railway about 1 year ago


ras7le
HOBBYOP

a year 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 about 1 year 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

a year 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.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...