21278 Posts in 5728 Topics by 2599 members
|Go to End|
2 December 2009 at 8:30am
I am a newbie to SilverStripe but have used other CMS systems in the past. I have taken over support of our Silverstripe system, as our previous admin left suddenly leaving little documentation, so I have had a steep learning curve. One thing that has frustrated me is how to get pages from our development site into our production site. It seems that the only way to do this is to do a MySql dump of the whole database from the development site and refresh that to the production site. But what if I want to do just one page and not all pages? It seems that there should be a page export/import facility in the Admin pages of Silverstripe but that does not exist (unless I am missing something).
Also, how do you move pages from Test to Prod in an environment where you have no CLI access to the server, only ftp/sftp. This is the situation we may be faced with as we are considering changing our hosting providers.
2 December 2009 at 8:46am
I'm sure there is a better way than this, and one of the others may respond as such soon. I would be interested to see other methods too.
But generally, we have phpMyAdmin running on dev, staging and production. For us, prior to launch, the content is entered on a staging server (which also has phpMyAdmin). When we are ready to launch, we simply phpMyAdmin to dump an SQL file on staging, and upload this to production.
We don't need to touch the CLI for this. And SS's built in draft mode content building gives us the ability to work on any new content without making it live on the frontend - right in the production environment.
2 December 2009 at 9:08am
So what you are saying is that there is no facility to move just one page from one site to another? I have to do the whole site? And that if I don't have access to mysqldmp, I would need PHPMyAdmin? Thats a high-privilege facility, how do other folks handle it when their Silverstripe site is hosted somewhere without access to PHPMyAdmin?
I understand what you are saying about the draft mode, but this is not the same as having a true dev/test/prod setup. I want to be able to develop a small group of pages, perhaps with some template changes and theme changes, you cannot do this easily with the Draft mode, you need an independent test system.
3 December 2009 at 5:38pm
there is no straight forward way to do this, but this may get you close...
for importing content, take a look at this:
it looks like Sam and Ingo made a module that takes a yaml-like text file and imports it into the sitetree..
to export the content, you may want to add some methods to sitetree or homepage to render the appropriate content in the appropriate format. I'm not sure why they ran with yaml when so much is xml based, but i may end up re-writing the module for ourselves sometime in the future anyway to import xml instead.
i'm not sure what support for dataobjects this module provides, and i havent tried it yet, but it did capture my attention a few days ago.
hope it helps,
4 December 2009 at 4:40am
I have a lot of interest in such a feature.
After reading the book, I see that Silverstripe have a very nice REST api, So i think my best bet would be to create a module, that does the transfer wiith this API with a POST or a PUT, but my main concern is the assets which can be transfered via rsync.. but I don't want to transfer asses wich belongs to page not ready to be on the production site.
|Go to Top|