Skip to topic | Skip to bottom
Home
Search:

Local
Local.UkMirLearningCurver1.6 - 25 Dec 2005 - 22:23 - WietsEtopic end
You are here: Local > ImcUk > ImcUkTech > UkMirLearningCurve

Start of topic | Skip to actions
Back to Imc UK twiki | Back to UK Tech twiki | back to UkMovingToMir


The Mir Learning Curve

Just trying to document the steep learning curve to migrate the uk to mir.
I didn't know anything about java when I started, so don't think i've coughed
all the following up myself - I irc'ed on the #mir channel on
http://irc.indymedia.org and asked.

hopefully this documentation helps to get more people involved; and just in
case i get run over by a bus someone might make sense of it :)

For setup details of the uktest site see
http://lists.indymedia.org/mailman/public/imc-uk-tech/2003-February/000534.html

I assume you've read how to use cvs - if not please read
"http://lists.indymedia.org/mailman/public/imc-uk-tech/2003-February/000535.html

For passwords please mail me your pgp, see AndiE below for details.


Problem 01: configure the uktest site (done by init)

What's needed: configure it

File to be changed:
/var/www/uktest.indymedia.de/setup_uk/etc/config.properties

Browsable (select version 1.1.1.1) at
http://mir.indymedia.org/cvs/viewcvs.cgi/setup_uk/etc/config.properties

Changed: dunno exactly. a lot. 2 b documented still...


Problem 02: there's nothing in the middle column to be seen

What's needed: make the "Pre-Mir Featurees" appear in the startpage

File to be changed:
/var/www/uktest.indymedia.de/setup_uk/etc/producer/producers.xml

Browsable (select version 1.2) at
http://mir.indymedia.org/cvs/viewcvs.cgi/setup_uk/etc/producer/producers.xml

To be changed is in line 260 of producers.xml:


selection="is_published=true and
to_article_type=${articletype.feature},
${articletype.oldfeature})" 




Problem 03: make localstartpages:

What's needed: add a regionalstartpage producer (thanks to zapata)

File to be changed:
/var/www/uktest.indymedia.de/setup_uk/etc/producer/producers.xml

Browsable (select version 1.3) at
http://mir.indymedia.org/cvs/viewcvs.cgi/setup_uk/etc/producer/producers.xml

I added lines 278-313:


 <producer name="regionalstartpage">
   <verbs>
     <verb name="generate" default="1" description="Generates the startpage"/>
   </verbs> 

   <body>
     <Enumerate key="region" table="topic" selection="archiv_url='region'">
       <List key="startspecial" table="content" limit="1"
         selection="is_published=true and to_article_type=${articletype.startspecial} 
         and id in (select content_id from content_x_topic where topic_id = ${region.id})"
         order="webdb_create desc, date desc"/>

       <List key="features" table="content" limit="10"
         selection="is_published=true and to_article_type in (${articletype.localfeature}, 
         ${articletype.feature}, ${articletype.oldfeature}) and id in (select content_id from 
         content_x_topic where topic_id = ${region.id})"
         order="webdb_create desc, date desc"/>

       <List key="newswire" table="content" limit="30"
         selection="is_published=true and to_article_type=${articletype.newswire} and 
          id in (select content_id from content_x_topic where topic_id = ${region.id})"
         order="webdb_create desc, date desc"/>

       <Language>
         <If condition="region.main_url!=''">
           <then>
             <Generate
               generator="${region.main_url}"
               destination="${config.storageRoot}/${pathprefix}/$ 
               {region.filename}/index.shtml"/>
           </then>
           <else>
             <Generate
               generator="/startpage.template"
               destination="${config.storageRoot}/${pathprefix}/$ 
                {region.filename}/index.shtml"/>
           </else>
         </If>
       </Language>
     </Enumerate>
   </body>
 </producer>
  


Problem 04: it didn't work

What's needed: check syntax error

File to be changed: /var/www/uktest.indymedia.de/setup_uk/etc/producer/producers.xml

Browsable (select version 1.4) at http://mir.indymedia.org/cvs/viewcvs.cgi/setup_uk/etc/producer/producers.xml

To be changed is in line 260 of producers.xml: Syntax error, must be:

selection="is_published=true and to_article_type in(${articletype.feature}, ${articletype.oldfeature})" 


Problem 05: regional startpages still don't show

What's needed: change the link to the archive set in navigation.template

File to be changed: /var/www/uktest.indymedia.de/setup_uk/etc/producer/navigation.template

View (select version 1.2) at http://mir.indymedia.org/cvs/viewcvs.cgi/setup_uk/etc/producer/navigation.template

To be changed is in line 42: instead of:

<br><a href="${config["Producer.DocRoot"]}/${language.code}/${t.filename}/archive.shtml">${t.title}</a>
it should be:
<br><a href="${config["Producer.DocRoot"]}/${language.code}/${t.filename}/">${t.title}</a> 


Problem 06: can't see publish page

What's needed: correct the link to the publish page set in config.properties

File to be changed: /var/www/uktest.indymedia.de/setup_uk/etc/config.properties

View (select version 1.2) at http://mir.indymedia.org/cvs/viewcvs.cgi/setup_uk/etc/config.properties

To be changed is in line 137: instead of:

Producer.OpenAction=https://uktest.indymedia.de/Mir/servlet/OpenMir
it should be:
Producer.OpenAction=https://uktest.indymedia.de/uktest/servlet/OpenMir 


Problem XX:

What's needed:

File to be changed:

[sorry the following is just a memorizing help for me. It's a mail to zapata. If you can't speak dutch then babelfish it until I come up with a clearer format wink

static files:


ik heb een lancaster.mission.html gecommit gecvs'd gelinkt etc maar'ie gaat niet live. urs's test.html ook niet. hoezo?

navigation (column links):


ik heb heel wat regianal startpages gemaakt maar kan met de navigatie links niet verder - kennelijk de 'topics' zijn met deze value binnengehaald: ${lang("startpage.imcs")} maar waar zit die? ik neem aan dat ik daar ook de woording van 'topic' naar 'UK IMC's' kan veranderen...

publishing:


opladen blift stoppen met de url: https://uktest.indymedia.de/uktest/servlet/OpenMir?do=insposting wat ontbreekt er nog?

alleen local opladen:


waar kan het gezet worden dat een oplaad van, zeg londen, alleen maar opladen naar londen toelaat?

articletype link:


ik heb een niewe articletype 'world' aangemaakt (voor de internationaal spul), hoe ga ik hem linken? ik zal ook nog meer aanmaken, zoals 'majorreport' etc. moeten deze ergens in de producer.xml erin of is het genoeg om een link te zetten?

moderatie:


het is al een paar stappen verder maar als mensen gaan opladen is het mogelijk om de posts automatisch in de wires te laten verschijnen? ik neem aan dat er iets met de autosync moet veranderen, of met crontrab of hoe weet ik niet.

lengte van regional pagina's:


waar zet ik hoeveel localfeatures per localstartpage gaan verschijnen en waar en hoe gaan de archief links verschijnen?

rsync:


als ik jebba/jeff ga halen, kun je met hem de resync naar ahimsa opzetten zoals jullie dat van je testbox deden? of kun je me uitleggen wat en waar ik dit moet doen? jeff heeft me de log van jullie chat gestuurd en ik heb hem naar de vk-tech lijst geforward, zie http://lists.indymedia.org/mailman/public/imc-uk-tech/2002-November/000690.html

database:


je zei een keer op irc dat het een eitje was om de vk database op de stand van vandaag te brengen. zou te gek zijn als je dat zou kunnen doen omdat er met de gvd oorlog en de protesten ongeloofelijk veel regionaal postings zijn. en er zijn nu al drie nieuwe groepen aan het vormen (oxford, newcastle, cambridge) die allemaal uit die protesten voortkomen en ze zijn nieuwsgierig voor mir. om het project aan al die onbekenden niewe volunteers hier uitteleggen zou het veel beter begrijpbaar voor de regionale mensen zijn als hun postings al in hun regionaal wires zichtbaar zijn...

"content-negotiation" ???


nadat ik mensen op m'n regionale design probeertjes heb gewezen kreeg ik een vraag van url arrangement voor de taal opties van de regional startpagina's, zie http://lists.indymedia.org/mailman/public/imc-uk-network/2003-March/000252.html ik snap hem niet helemaal wat die mens er mee bedoelt. doe jij?

tomcat herstarten:


kan ik dat zelf? hoor ik te moeten doen? we hadden het er een keer over op irc maar ik herinner me vaag dat ik urs een keer tomcat vanuit lynx van binnenin ssh zag herstarten. ik moet hem waarschijnlijk effe vragen...

-- AndiE - 08 Apr 2003
Added link to UkMovingToMir -- IonNec - 10 Apr 2003
corrected some links to tech-list documents -- GarconDuMonde - 08 Feb 2004

Back to Imc UK twiki | Back to UK Tech twiki
to top


You are here: Local > ImcUk > ImcUkTech > UkMirLearningCurve

to top

Copyright © 1999-2008 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding this tool? Send feedback (in English, Francais, Deutsch or Dutch).