Configure nixpacks.toml per service

Ddwaynemac12/10/2022
Is it possible to have multiple nixpacks.toml file on repo and config which each service should use?

I'm currently having 3 services on every project:
* web server
* background worker
* cron scheduler

If I could choose different builds for each I could have slightly different builds. (like not compiling assets)
Ddwaynemac12/10/2022
project id: 2bda3e88-4f1a-4742-80c7-24f5e032f52c
Ddwaynemac12/12/2022
how?
ADA Dumb12/12/2022
lmao
ADA Dumb12/12/2022
I’m assuming you’re using a monorepo, how is it structured?
ADA Dumb12/12/2022
if you set a separate root directory for each service, each root directory can have a nixpacks.toml
Ddwaynemac12/12/2022
It's a RubyOnRails app. Monorepo, yes. but only one root directory.
On other platforms I'd have different processes configured on Procfile.
Ddwaynemac12/12/2022
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
Ddwaynemac12/12/2022
Currently it works fine configuring the start command through railway.app UI
but i could optimize deploys by setting nixpacks file per service.
UUUnknown User12/12/2022
4 Messages Not Public
Sign In & Join Server To View