Configure nixpacks.toml per service

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)
7 Replies
Percy
Percy2y ago
Project ID: 2bda3e88-4f1a-4742-80c7-24f5e032f52c
Percy
Percy2y ago
Yes, it is possible to have multiple nixpacks.toml files in a repo and configure which service should use which file.
⚠️ experimental feature
dwaynemac
dwaynemacOP2y ago
project id: 2bda3e88-4f1a-4742-80c7-24f5e032f52c how?
Percy
Percy2y ago
Yes, it is possible to have multiple nixpacks.toml files for different services, and you can configure builds with a nixpacks.toml file.
⚠️ experimental feature
Adam
Adam2y ago
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
dwaynemac
dwaynemacOP2y ago
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.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server