How to run multiple python files

rapl4
FREE

a year ago

when i write two files in the Procfile, it only runs one
i wrote it like this:
web: python main.py
web: python other.py

2 Replies

rapl4
FREE

a year ago

i wrote each on one line but i guess the questions system made it like this


a year ago

that is not valid syntax, running multiple python files should be done by having multiple railway services, you would set your desired start command in the service settings, no need for a Procfile in this context.