cancel
Showing results for 
Search instead for 
Did you mean: 

How to check if a document has been deployed

pyppe
Champ in-the-making
Champ in-the-making
Hi.

I've got a Web Project that I deploy using a FSR. The deployed website is served with Apache Httpd. The content of the web site is mainly static HTML files, but I've got a couple of dynamic pages that use Web Scripts show paginated views.

The problem is that the dynamic Web Scripts also contain documents (e.g. XML- and HTML-elements created by a Web Form) that have not yet been deployed with FSR. Thus it displays links to elements that do not exist in the "online-project" that is served with Apache Httpd.

How do I solve this issue? Is there a mechanism in Web Scripts, so that I could check if the document has been deployed with FSR?

Thanks, Pyppe
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Where are your web scripts expecting to get their data?   The solution to your problem is to probably to deploy your missing content rather than trying to second guess what has been deployed.

But if you really do need to work out what has been deployed you can.  
On the authoring server you can either look at the "deployment report" or inject your own code to monitor deployment.  
On the FSR side you could have a post deployment callback that saves the details in a format of your choosing.

pyppe
Champ in-the-making
Champ in-the-making
The missing content will be deployed – eventually. The problem is, that there is a certain period of time, when the content has been submitted to the Staging Sandbox – and thus is visible through Web Scripts – but has not been deployed to the production server (i.e., the Apache Httpd). And this presents the problem of a dynamic pages (using Web Scripts) showing links to content that does not yet exist on the production server.

For this reason, I'd need some mechanism to determine in my Web Scripts whether an element has been deployed or not.