|
Home > Archive > Microsoft Content Management Server > July 2004 > Automoatic on-dmand deployment
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Automoatic on-dmand deployment
|
|
|
| Does anyone have any code for automatically deploying a posting from
one CMS Server to another when the user approves?
| |
| Angus Logan 2004-07-15, 5:51 pm |
| What is your driver for doing it realtime?
I would recommend setting up the scripts and a short interval but not
immediately after approval... (what would happen if the user approves
something and then approves another page within 20 seconds... 2 exports).
If you were really keen on setting it up automatically maybe you could use
the 'CmsPosting_Approved' event to call an Asyncronous web service that
manages the import/export to the other server...
I think setting up a scheduled job to do 'almost' realtime would be the
cleaner option than doing the every action reqiures an export...
Thoughts anyone?
--
________________________________________
Angus Logan
Lead Software Developer
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________
"Tools" <mbrocklehurst@hotmail.com> wrote in message
news:e571bea.0407150650.47814391@posting.google.com...
> Does anyone have any code for automatically deploying a posting from
> one CMS Server to another when the user approves?
| |
|
| Hi
I have one server in Europe, one server in the US. I want to deploy
the US portion of the CMS site from the US server back to the server
in Europe for local browsing.
The SDO file for North America is huge so I don't want to export and
import every day as the file would be too big to shift across our
network regularly. The export also often fails due to server timeouts.
So, I really need a way of just sending incremental changes.
I don't mind if these increments are every 20 minutes, or even every
hour, every day even. What I need is the method of only sending
increments.
My total CMS database size is 12GB, I am running CMS2002 in mixed mode
with classic ASP templates (not .NET)
Thanks
| |
| Stefan [MSFT] 2004-07-21, 5:52 pm |
| Hi,
site deployment using SDAPI is always incremental if you don't specify a
timespan.
You could setup a scheduler task to export every 20 minutes, send the file
to the server in europe (e.g. using ftp) and run another import job here to
import all arrived sdo files.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
"Tools" <mbrocklehurst@hotmail.com> wrote in message
news:e571bea.0407210836.717c32a7@posting.google.com...
> Hi
>
> I have one server in Europe, one server in the US. I want to deploy
> the US portion of the CMS site from the US server back to the server
> in Europe for local browsing.
>
> The SDO file for North America is huge so I don't want to export and
> import every day as the file would be too big to shift across our
> network regularly. The export also often fails due to server timeouts.
>
> So, I really need a way of just sending incremental changes.
>
> I don't mind if these increments are every 20 minutes, or even every
> hour, every day even. What I need is the method of only sending
> increments.
>
> My total CMS database size is 12GB, I am running CMS2002 in mixed mode
> with classic ASP templates (not .NET)
>
> Thanks
| |
|
| Thanks Stefan,
Does this mean that the very first deploy will be huge and take a very
long time (12GB database) and from then on it will only be small?
If this is the case then I don't think it will work, exporting large
channels always fails due to server timeout issues.
Am I on the right track here?
"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message news:<eDbm#G0bEHA.1732@TK2MSFTNGP09.phx.gbl>...[vbcol=seagreen]
> Hi,
>
> site deployment using SDAPI is always incremental if you don't specify a
> timespan.
> You could setup a scheduler task to export every 20 minutes, send the file
> to the server in europe (e.g. using ftp) and run another import job here to
> import all arrived sdo files.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> MCMS FAQ:
> http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
> http://www.gotdotnet.com/community/...t+S
erver
> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "Tools" <mbrocklehurst@hotmail.com> wrote in message
> news:e571bea.0407210836.717c32a7@posting.google.com...
| |
|
|
|
| Stefan,
I am exporting using the Site Manager. We have received a number of
different timeout errors when exporting selected large channels, most
seem to be solved by extending the page timeout in IIS but I don't
feel comfortable extending it to the point where we could export our
entire site.
Also, our site becomes VERY VERY slow when we are running the export,
I couldn't have it that slow for a whole day (which I guess is what it
will take)
Should I try a server-side VB script instead of the Site Manager?
One other point. I have successfully performed a small incremental
export using SDAPI on a test channel. I first exported the channel
manually and then ran an incremental export script to pick up changes
and overwrite the original SDO.
However, the changes it picked up were to the entire site, not just
the channel I specified in the original SDO through site manager. How
can one set the scope of containers to export when using server-side
scripts and SDAPI?
Have I got it right that the original manually exported SDO is
supposed to contain the scope/rules for which containers to export? Or
this an extension of the SDAPI export options?
(p.s. I was using the example code from the MCMS documentation)
Thanks again for your help, hope all is clear.
Matt
> Hi yes this would be the case.
> Did you do the export with SiteManager or server side SDAPI?
> What kind of timeout do you get?
> A timeout to the CMS server or a timeout to the SQL server?
>
> Cheers,
> Stefan.
>
| |
| Stefan [MSFT] 2004-07-22, 5:56 pm |
| Hi,
the 3rd parameter will take the GUID of the start channel if you would like
to limit the amount of data.
The GUID can be identified with a Publishing API script.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
"Tools" <mbrocklehurst@hotmail.com> wrote in message
news:e571bea.0407220610.66b3361e@posting.google.com...[vbcol=seagreen]
> Stefan,
>
> I am exporting using the Site Manager. We have received a number of
> different timeout errors when exporting selected large channels, most
> seem to be solved by extending the page timeout in IIS but I don't
> feel comfortable extending it to the point where we could export our
> entire site.
>
> Also, our site becomes VERY VERY slow when we are running the export,
> I couldn't have it that slow for a whole day (which I guess is what it
> will take)
>
> Should I try a server-side VB script instead of the Site Manager?
>
>
>
> One other point. I have successfully performed a small incremental
> export using SDAPI on a test channel. I first exported the channel
> manually and then ran an incremental export script to pick up changes
> and overwrite the original SDO.
>
> However, the changes it picked up were to the entire site, not just
> the channel I specified in the original SDO through site manager. How
> can one set the scope of containers to export when using server-side
> scripts and SDAPI?
>
> Have I got it right that the original manually exported SDO is
> supposed to contain the scope/rules for which containers to export? Or
> this an extension of the SDAPI export options?
>
> (p.s. I was using the example code from the MCMS documentation)
>
>
> Thanks again for your help, hope all is clear.
>
> Matt
>
>
>
| |
|
| Stefan,
Thanks again for your help. Using the script I have now managed to
deploy a single channel using server side Vb Script and SDAPI.
I can export a single channel, but if I add a posting to that channel
my script does not complete successfully, and no SDO file is created
.... and I do not get an error message.
Where should I be looking for a log of what happens as at the moment
there is no error message at all, the script just stops at this line:
pCmsDeployExport.Export(strPackageFileName, 0, strGUID)
and never comes back with anything. I can msgBox to the screen up to
this point but not after this.
Thanks again for the help,
Matt
| |
| Stefan [MSFT] 2004-07-28, 6:10 pm |
| Hi Matt,
you mean this line never returns?
Then you should open a support case .
This has never been reported before and we will have to investiate.
Thanks,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
"Tools" <mbrocklehurst@hotmail.com> wrote in message
news:e571bea.0407260815.27789d3d@posting.google.com...
> Stefan,
>
> Thanks again for your help. Using the script I have now managed to
> deploy a single channel using server side Vb Script and SDAPI.
>
> I can export a single channel, but if I add a posting to that channel
> my script does not complete successfully, and no SDO file is created
> ... and I do not get an error message.
>
> Where should I be looking for a log of what happens as at the moment
> there is no error message at all, the script just stops at this line:
> pCmsDeployExport.Export(strPackageFileName, 0, strGUID)
>
> and never comes back with anything. I can msgBox to the screen up to
> this point but not after this.
>
> Thanks again for the help,
> Matt
|
|
|
|
|