You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Packaging in "dev" mode so MakeDeployed lifecycle is never executed
#1252
We in HealthShare use IPM to package up modules that will be used for both development and production. Per #624, this seems to be common among IPM users.
In addition to potentially selectively running code via <Invoke> or selectively applying configuration via <CPF>, we would like to selectively deploy code depending on the branch from which the source code is packaged. For example, when packaging code from a particular testing and development branch, the package should not include any deployed code so that its source code can be inspected and edited for debugging purposes. However, when packaged from its main branch, the package should be production-ready (aka include deployed code).
The easiest way to achieve this in IPM that I can think of is to introduce some kind of "dev" modifier to the package and publish commands that causes %IPM.Storage.Module::Module.HaveToDeploy() to return false so that ..MakeDeployed() is never run within %IPM.Lifecycle.Module::%Package().
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
We in HealthShare use IPM to package up modules that will be used for both development and production. Per #624, this seems to be common among IPM users.
In addition to potentially selectively running code via
<Invoke>or selectively applying configuration via<CPF>, we would like to selectively deploy code depending on the branch from which the source code is packaged. For example, when packaging code from a particular testing and development branch, the package should not include any deployed code so that its source code can be inspected and edited for debugging purposes. However, when packaged from its main branch, the package should be production-ready (aka include deployed code).The easiest way to achieve this in IPM that I can think of is to introduce some kind of "dev" modifier to the
packageandpublishcommands that causes%IPM.Storage.Module::Module.HaveToDeploy()to return false so that..MakeDeployed()is never run within%IPM.Lifecycle.Module::%Package().All reactions