Monorepo with 2 Apps cli push specific app
If I have a nx monorepo where I will have multiple analog.js apps
Is there a way to choose which app should be pushed by the zcli. maybe through providing another yml file?
3 Replies
Hi,
you can still have one
zerops.yaml
. In which there can be more setup
sections.
By default, the setup with the same name as the target service is used.
You can specify which setup you want to use using the --setup
flag
zcli push --setup SETUP
zcli push --setup app1
zcli push --setup app2
@elite-benni which app should be pushed is decided by the param you pass to the push command
if you don't pass in
--serviceId
, it will let you choose interactively
by default, this will match the target service's hostname with the setup
definition of your zerops.yml
, but if you have 10 apps with essentially the same build and deploy configuration, you can either do what @Jan Saidl suggested
this will force it to use appbase
setup no matter the service hostname
alternatively you can add one setup
base and then have other setups (matching their service's hostname) extend it
Nice thanks, I will try that and give you the feedback.
Very nice, works like expected! Thanks for the help 🥳