Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Deployment/Content Export?

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2
Go to End
Author Topic: 8136 Views
  • phptek
    Avatar
    Community Member
    15 Posts

    Deployment/Content Export? Link to this post

    Hi folks,

    I am new to Silverstripe and according to cmsmatrix.org, Silverstripe is capable of static content export i.e. Query database for content --> "Cook" into .html files --> Export to target server(s) in the public internet. I'd really like to know if there's any documentation/knowledge regarding static content export.

    I believe the script/module used to do this is called "publishsite" but there doesn't seem to be much information regarding how to use it, how to run it or exactly how it does it (rsync? FTP? etc). Is this something that is detailed in the docs when you download Silverstripe?

    Thanks a lot.

  • Willr
    Avatar
    Forum Moderator
    5483 Posts

    Re: Deployment/Content Export? Link to this post

    Sam has started a class called StaticExporter which exports the site into html files - http://doc.silverstripe.com/doku.php?id=staticexporter

    Not too much documentation on it just yet but If you visit http://www.yoursite.com/StaticExporter/ and log in as an admin, it will let you download a .tar.gz with a complete static dump.

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: Deployment/Content Export? Link to this post

    We are planning on extending the capabilities of the HTML export quite significantly in the next few months... stay tuned.

  • phptek
    Avatar
    Community Member
    15 Posts

    Re: Deployment/Content Export? Link to this post

    Hi guys and thanks for the replies. I checked out the /StaticExporter. This is quite crude but sort of does the job. What I'm really after and what you're probably working on now I'd wager is something like this:

    * A specific CMS admin screen allows one to configure the username, host and target directory to statically deploy to using rsync. (Secure rsync will of course depend on the user having an SSH agent running in the background (Unix-like systems)).
    * In the CMS view the "Save and Publish" button has a checkbox next to it labeled "deploy".
    * Checking this box and pushing this button (Admin/editor users only) securely rsyncs static content to predetermined target server(s).

    We currently use Zope/Plone to deploy to 3 public-facing webservers as Plone is dog slow and a bit of a resource-hogger (The CMS itself sits behind our LAN) but it's required a bit of Python hacking to get it to work as above. If this sort of functionality could be offered by Sliverstripe out of the box, you'd be blowing most of the other CMS's out of the water in terms of functionality.

    A would-like-to-have would be switches (checkboxes) next to each listed target deployment server so that you can arbitrarily choose not to deploy to specific machines...

    Thanks heaps guys.

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: Deployment/Content Export? Link to this post

    What you have described above is at a high level what we are working towards. Our need is to support two sites which are going be serving several tens of millions of pages per day, and serving static HTML is the only feasible way to handle this sort of load.

    All going well, you'll be able to plug it directly into a CDN for even greater performance if you need it.

    Once it's been developed it will become part of the core product.

    My condolences about being stuck on Plone... its performance is so bad it's near on criminal

  • phptek
    Avatar
    Community Member
    15 Posts

    Re: Deployment/Content Export? Link to this post

    Cheers Tim,

    When you say "Our need is to support two sites" what exactly do you mean?

    1). The CMS itself and and a static HTML, exported version?
    2). Two exported versions of the same website?
    3). Two exported versions of 2 different websites?

    If 2)., why stick to 2?, just allow any number of target servers to deploy to? Although I grant you I may have the wrong end of the stick..it's only just gone 9am...

  • phptek
    Avatar
    Community Member
    15 Posts

    Re: Deployment/Content Export? Link to this post

    PS...what's the best way of keeping tabs on the development of this specific functionality?

    Ta

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: Deployment/Content Export? Link to this post

    I'll make a point of updating this post when this functionality is ready. Reply to this post and select "subscribe to this topic" so you can follow this by email as well.

    In relation to the "two sites", what I meant is we have two clients, each with their own site which needs this capability. This means that by the time we release it it will have been pretty well battle tested.

    8136 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.