Re: [Hypercontent-users] loosing the repository
Brought to you by:
alexvigdor
From: tom t. <j_l...@ya...> - 2007-05-15 23:57:02
|
Alex, What do you mean by older version of HyperContent, we use HC 2.0 with the patches which we discussed. Are you refering to HC 2.0 or HC 2.1 If I can remember there was unnecessary publish folder inside the content folders level, but am not too sure. Here am sending my project definition and build.xml and approval.xml files, we still doing the remote publishing part, remote repository has not been addressed yet, Also remember that we have a staging area as well, that is our publish and also build copy things across. We started with copying content to one remote machine, eventually this will be extended. Also we decided to treat build and build all as the same because $path was showing errors if the user doenst come to workflow screen and do publish or build soon after modification. Practically there is always a possibility users can navigate other pages after modifications. If there is a workaround do let us know, but we dont have issues with building all. project-definition.xml <cms-project> <mount directory="publish2"> <filesystem-def name="publish2" type="sftp"> <argument index="0" value="x.x.x.8"/> <argument index="1" prompt="username" type="text"/> <argument index="2" prompt="password" type="password"/> <argument index="3" value="/var/www/html/documentsHC/publish"/> <argument index="4" value="0775"/> </filesystem-def> </mount> <mount directory="author2"> <filesystem-def name="author2" type="sftp"> <argument index="0" value="x.x.x.8"/> <argument index="1" prompt="username" type="text"/> <argument index="2" prompt="password" type="password"/> <argument index="3" value="/var/www/html/documentsHC/author"/> <argument index="4" value="0775"/> </filesystem-def> </mount> <build> <filesystem-def name="Author" type="local"> <argument index="0" value="/var/www/html/documentsHC/author"/> </filesystem-def> </build> <publish> <filesystem-def name="Publish" type="local"> <argument index="0" value="/var/www/html/documentsHC/publish"/> </filesystem-def> </publish> <resource-directory create="manual" label="html" path="/**/*.html" publish="true"> <content type="text/html"/> <content type="image/jpeg"/> </resource-directory> <resource-directory create="manual" label="css" path="/**/*.css" publish="true"> <content type="text/plain"/> </resource-directory> <xml-doctype create="manual" definition="" label="Page" path="/**/*.xml" root="html"> <output basedir="/plain/" content-type="text/html"> <transform source="/config/skins/plain/common.xsl"> <with-param name="link-base" value="/plain"/> </transform> </output> </xml-doctype> <resource-directory create="manual" label="JPEG" path="/**/*.jpg" publish="true"> <content type="images/jpeg"/> </resource-directory> <resource-directory create="manual" label="GIF" path="/**/*.gif" publish="true"> <content type="image/gif"/> </resource-directory> <resource-directory create="manual" label="Velocity Template" path="/skins/**/*.vm" publish="true"> <content type="application/x-vtl"/> <output basedir="/" content-type="text/plain"/> </resource-directory> <resource-directory create="manual" label="PNG" path="/**/*.png" publish="false"> <content type="image/png"/> <output basedir="/" content-type="image/png"/> <output basedir="/" content-type="image/gif"> <filter key="image"/> </output> <output basedir="/" content-type="image/jpeg"> <filter key="image"> <with-param name="quality" value=".75"/> </filter> </output> </resource-directory> <resource-directory create="manual" label="XSL" path="/config/skins/**/*.xsl" publish="false"> <content type="application/xml+xslt"/> </resource-directory> <resource-directory create="manual" label="folder" path="/**/" publish="true"/> <resource-directory create="manual" label="DTD" path="/config/dtd/*" publish="false"> <content type="application/xml-dtd"/> <output basedir="/" content-type="text/plain"/> </resource-directory> <resource-directory create="manual" label="folder2" path="/**/" publish="true"/> </cms-project> //============================================= build.xml <workflow binding="/**/,/**/*.*"> <event name="build" permissions="build"> <variable name="builder" value="${actor}"/> <render delete="true" destination="/build/" force="false" path="/"/> <render delete="true" destination="/author2/" force="false" path="/"/> <variable name="href" value="${abs-project-base}/hcMessages/buildSuccess.html"/> <nq who="${builder}"/> <nq q="building"/> </event> <event name="build-all" permissions="build"> <variable name="builder" value="${actor}"/> <render delete="true" destination="/build/" force="false" path="/"/> <render delete="true" destination="/author2/" force="false" path="/"/> <variable name="href" value="${abs-project-base}/hcMessages/buildSuccess.html"/> <nq who="${builder}"/> <nq q="building"/> </event> <event name="view-built" permissions="read"> <redirect location="http://x.x.x.8/documentsHC/author/plain/index.html"/> </event> <q id="building"> <event name="batch-complete"> <dq/> <nq q="built"/> </event> </q> <q id="built"> <event name="batch-reset"> <dq/> <nq q="building"/> </event> <event name="discard" who="${builder}"> <dq/> <dq who="${builder}"/> </event> </q> </workflow> /====================================================== publish.xml <workflow binding="/**/,/**/*.*"> <event name="publish" permissions="publish"> <variable name="publisher" value="${actor}"/> <copy delete="true" destination="/publish/" force="false" path="/" source="/build/"/> <copy delete="true" destination="/publish2/" force="false" path="/" source="/build/"/> <variable name="href" value="${abs-project-base}/hcMessages/publishSuccess.html"/> <nq who="${publisher}"/> <nq q="publishing"/> </event> <event name="publish-all" permissions="publish"> <variable name="publisher" value="${actor}"/> <copy delete="true" destination="/publish/" force="false" path="/" source="/build/"/> <copy delete="true" destination="/publish2/" force="false" path="/" source="/build/"/> <variable name="href" value="${abs-project-base}/hcMessages/publishAllSuccess.html"/> <nq who="${publisher}"/> <nq q="publishing"/> </event> <event name="view-published" permissions="read"> <redirect location="http://x.x.x.8/documentsHC/publish/plain/index.html"/> </event> <q id="publishing"> <event name="batch-complete"> <dq/> <nq q="published"/> </event> </q> <q id="published"> <event name="batch-reset"> <dq/> <nq q="publishing"/> </event> <event name="discard" who="${publisher}"> <dq/> <dq who="${publisher}"/> </event> <event name="scheduled-discard" when="in 2 days"> <dq who="${publisher}"/> </event> </q> </workflow> --- Alex Vigdor <al...@bi...> wrote: > If you could send me your project definition and > workflow scripts > I'll have a look. It sounds a lot like an attempt > was made to > publish into the repository fileystem, which I had > seen lead to data > loss in an older version of HyperContent. Now it > does prevent you > from publishing into the repository filesystem > directly, but it may > still be possible to configure things in such a way > to lead to problems. > > Alex > > On May 15, 2007, at 2:26 AM, tom tom wrote: > > > Hi, > > > > Remote publishing was working all right > development > > machine, Before it goes to the production we were > > testing on the testing envirornment. As we have a > > staging area we followed the following. > > > > 1) Project definition updated with mount > points(e.g > > publish1, build1, publish2, build2) > > > > 2) In the build.xml for example build-all have the > > following e.g. > > > > <render delete="true" destination="/build1/" > > force="false" path="/"/> > > <render delete="true" destination="/build2/" > > force="false" path="/"/> > > > > > > 3) similarly I updated the publish.xml > > > > > > > > What happened was build went all right and during > the > > publish it got stucked, after some time we logged > out > > and try again, but there after we did restart and > > login again, then we could go inside the project > and > > all the data has been deleted, I couldnt see any > > build.xml publish.xml project-definition.xml > infact > > empty entries in the config/workflow, I manually > > command line went to the repository location and > there > > was absolutely no revisions at all. > > > > This incident gave a bit of a red alarm as far as > the > > production is concern, infact we could not see the > new > > created content int the repository. > > > > > > Can you let us know what would be the cause for > this. > > > > Note > > Tomcat runs as the root user in the Hypercontent > > machine. > > > > Thanks > > > > > > > > > > > ______________________________________________________________________ > > > ______________Luggage? GPS? Comic books? > > Check out fitting gifts for grads at Yahoo! Search > > > http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 > express and take > control of your XML. No limits. Just data. Click to > get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > ____________________________________________________________________________________Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433 |