Re: How to export a jahia site on a new machine.
"Sanjay Goel" <[email protected]> Wed, 6 Sep 2006 21:28:03 +0530
| Newsgroups | gmane.comp.cms.jahia.install |
|---|---|
| Message-ID | <[email protected]> |
I tried entering this info to sync my local machine with another machine. However, after clicking add, when I click save, it just gets removed from the list. Why does that happen? On 9/6/06, Stéphane Croisier <[email protected]> wrote: > > At 13:04 06.09.2006, you wrote: > > Stephane, > I have exported the virtual site using the administration menu. How to > import it to the new machine now? Virtual sites management menu does seem to > have any import button. > > > When you create a new virtual site, within the virtual site configuration > wizard, when you reached the page where you need to choose your set of > template, you can here choose to import an existing import file (please use > the same set of templates or 100% compliant templates). > > > Secondly, can you tell me some document which contains information about > "Manage Distant Site for Auto Export". I am not able to make it to work. > I'll export the portlets after I am able to export the content. > > > You just need to fulfill the information of the form aka: the full name of > your remote virtual site (it could be another virtual site on the same > server too = http://localhost:8080/jahia/Jahia/site/name_of_my_new_site ) > > Then you need to enter the name of the user on the distant server that > will make the import (usually root) and the name of the user on the local > server who will make the export (could be root if you want to make a full > site export, but could also be guest if you only want to export content > available for the anonymous users but not confidential content - for example > for web site purposes). > > Finally you will need to enter your "cron" command (check the examples > listed below). > > Cheers > Stéphane > > > > Thanks > Sanjay > > On 9/6/06, *Stéphane Croisier* <[email protected]> wrote: > At 09:45 05.09.2006, you wrote: > > Hi, > I have created a jahia 5.0 site with some portlets on my local machine. > Now I want to export it to another machine for demo. > How should I go about it? I checked out the xml import export feature but > looks like it can only export portions of the site and it also doesn't > export portlets. > Also checked the "Manage Distant Site for Auto Export" in administration > but couldn't understand what exactly it is for and whether it will fulfill > my needs. > > > > You're right. The Export or Replication features (which basically use the > same import/export utility) does not directly handle portlets export but > just content replication. Portlets are another beasts. These are custom and > specific webapps which run in their own Java context. So for example in > Tomcat (and this is the same for all the other J2EE servers), the Jahia > webapp can not access to the portlet API. Morevover each J2EE server has > another manner of deploying and managing webapps. Finally each portlet can > have its own DB pool connections and other kind of connectors/settings/.... > So most of the time, replicating a portlet is not just as easy as making a > new war file and redploying it on the other server. So you will have to > manage that on your own. (regarding the jahia portlets, most of the time > they are prepackaged with en embedded HSQL DB, so you can just take the > portlet directory in /Tomcat/webapps and copy it into the other server, > reinitilaize the portlet in the Admin Center, then make a syncro with the > Manage distant Site export and you will have the same web site, portlets > included. Warning: if the content of your portlets is different from one > server and the other (e.g. you deployed a discussion forum and you have > tow different set of discussion threads on each server) you will have to > deal with the merge of the DB yourself. Here again the portlet is a > standalone dedicated web application... > > Cheers, > Stéphane > > > > Thanks > Sanjay Goel > http://sanjaygoel.blogspot.com > > > > > > -- > Sanjay Goel > http://sanjaygoel.blogspot.com > > - -- --- -----=[ scroisier at jahia dot com ]=---- --- -- - > Head of Products - Jahia Ltd, Route des Jeunes 9, 1227 Carouge > (Switzerland) > Jahia : The Java Unified Web Platform > www.jahia.org - The Product Web Site > www.jahia.net - The Community Web Site > www.jahia.com - The Commercial Services Company > -- Sanjay Goel http://sanjaygoel.blogspot.com