#Monorepo
5 messages · Page 1 of 1 (latest)
Project ID: eb3e87db-2f5c-4c3d-9382-bf66a4bc4e0c
eb3e87db-2f5c-4c3d-9382-bf66a4bc4e0c
New reply sent from Help Station thread:
Oh, I do this myself. I use "entrypoints" directory in root folder of the project.
I then structure it like this:
├── dev_demo │ ├── railway.json │ └── run.py ├── graphs_server │ ├── railway.json │ └── run.py ├── __init__.py ├── log_viewer │ ├── railway.json │ └── run.pyEach railway.json has config for running its specific thing, usually it just runs the
run.pyin its folder but you can configure it depending on your needs.Then when deploying I go to settings -> config as code and put a path to that file, for example
entrypoints/dev_demo/railway.json
My config here looks like this:{ "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "DOCKERFILE" }, "deploy": { "numReplicas": 1, "startCommand": "python -m entrypoints.dev_demo.run", "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 3 } }
You're seeing this because this thread has been automatically linked to the Help Station thread.
New reply sent from Help Station thread:
The "run.py" name got some weird formatting, but the idea should be clear :)
You're seeing this because this thread has been automatically linked to the Help Station thread.