post-deployment script Post deployment script didn’t call “done”, reverting - not dcoumented
toddgeist
Mar 2024
Ok I am going to add this to the docs but here is an example file. It has some scripts that You can use as a model for how to tell OttoFMS that your script is done.
PostDeploymentScriptEx.fmp12 (272 KB)
BUT… if you don’t want the Deployment To Revert you can just leave the toggle off for “revert the deployment …” Like this.
Todd
As shown in the docs, OttoFMS is checking for the “otto-pms-result.txt” file. It does not match the predeploy version of the filename due to some historical reasons (deployments were called migrations in earlier versions of OttoFMS, and we didn’t used to have pre-deployment scripts, so “pms” was as specific as it needed to be). It stays that way for backwards-compatibility.
Have you confirmed that the file is being properly written to your Documents directory? You should be able to see the file in the FMS Documents directory if it is actually being written.