adding business hosts programmatically to a pre-existing production.
Hello Guys, can you help me with a issue? I think it is a beginning question, but here goes, how do I add a new business host to production programmatically? for example a new business service or business process.
I've been looking at the documentation for the classes Ens.Config.Production, Ens.Config.Item and Ens.Director and I haven't found any method to add, maybe the name is a little bit different.
The idea is to create a class that will "deploy" or "configurate" a new project components in a pre-existing production.
Best,
Fernando.
Add a new Business Host. If you want to add several, call CallProductionUpdateAndSaveToClass method once at the end.
Thanks @Eduard Lebedyuk this is just what I was looking for!
Hi Fernando,
Check out this other developer community article: How to Export and Import Ensemble Components and Productions
It includes a link to the documentation on deploying a production.
If you need to do this programmatically you'll want to review the Ens.Deployment.Utils class reference.
Hi Vic, this is a very interesting approach to deploy production mainly in terms of ease of rollback. I confess I never did it that way.
Thank you for sharing the article.
If you're interested in rollback, check this series of articles on deploying with GitLab.
Thank You Eduard!
I'll see the articles.
I agree this approach looks good.
Social networks
InterSystems resources
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue