Planned restart of an production enviroment

0
Hi, is it possible to transport a new version of my app to the productive enviroment and schedule the restart at midnight? I don’t want to kick my users out of the system but i also need my sleep. ;-) Currently I did not find an option on my portal to perform this. Thank you!  
asked
1 answers
0

There's no option in Sprintr for this, but you could work it out with a scheduled event and the Deploy API. Use Stop and Start Environment endpoint to get your desired result. https://docs.mendix.com/apidocs-mxsdk/apidocs/deploy-api#stop-environment.

Another option could be using a Powershell script to get things going. See an excellent example by Bart Poelmans https://github.com/bizzomate/cicd-powershell. This is actually for deploying the latest revision but the stop and start actions are in the sourcefile.

answered