Post-deployment script Post deployment script didn't call "done", reverting - not dcoumented

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

this creates a file called otto-pms-result.txt

  • but this fails

but the documentation specifies otto-predeploy-result.txt so i thought otto-postdeploy-result.txt would work - no

any ideas?

ref: Deployment Scripts | OttoFMS
Post deployment script didn't call "done", reverting

Hey Josh,

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.

-Kyle

its being written. i used otto file browser to upload one created locally.

i ran the deploytment with no post deployment and then again with post deployment and worked.

What Operating System and version of OttoFMS are you running this on?

-Kyle