How to run multiple python files
rapl4
FREEOP

2 years 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
FREEOP

2 years ago

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


brody
EMPLOYEE

2 years 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.


Loading...