#Configure nixpacks.toml per service
15 messages · Page 1 of 1 (latest)
Project ID: 2bda3e88-4f1a-4742-80c7-24f5e032f52c
Yes, it is possible to have multiple nixpacks.toml files in a repo and configure which service should use which file.
project id: 2bda3e88-4f1a-4742-80c7-24f5e032f52c
how?
Yes, it is possible to have multiple nixpacks.toml files for different services, and you can configure builds with a nixpacks.toml file.
lmao
I’m assuming you’re using a monorepo, how is it structured?
if you set a separate root directory for each service, each root directory can have a nixpacks.toml
It's a RubyOnRails app. Monorepo, yes. but only one root directory.
On other platforms I'd have different processes configured on Procfile.
The 3 services I'm running are actually the exact same app. Only difference is the process that runs.
- web server -> puma web server
- background worker -> delayed_job worker
- cron scheduler -> clockwork
Currently it works fine configuring the start command through railway.app UI
but i could optimize deploys by setting nixpacks file per service.