<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ta vie on s'en fout! &#187; subversion</title>
	<atom:link href="http://tavie.onsenfout.com/tag/subversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://tavie.onsenfout.com</link>
	<description>Mon bazar techno-miam</description>
	<lastBuildDate>Tue, 22 Nov 2011 11:06:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installer Typo3 avec svn sur Ubuntu server</title>
		<link>http://tavie.onsenfout.com/2008/05/20/installer-typo3-avec-svn-sur-ubuntu-server/</link>
		<comments>http://tavie.onsenfout.com/2008/05/20/installer-typo3-avec-svn-sur-ubuntu-server/#comments</comments>
		<pubDate>Tue, 20 May 2008 01:22:39 +0000</pubDate>
		<dc:creator>François</dc:creator>
				<category><![CDATA[Bits]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[typo3]]></category>

		<guid isPermaLink="false">http://tavie.onsenfout.com/?p=67</guid>
		<description><![CDATA[Testé sur Ubuntu server 8.04LTS Plus ça va plus je trouve que subversion (svn) est un outil génial, et pas seulement pour les développeurs. Une fois qu&#8217;on connait l&#8217;adresse du dépot svn d&#8217;une application, ça devient très facile de l&#8217;installer, sous ses différentes versions si besoin, et les mises à jour deviennent très simples. Par [...]<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></description>
			<content:encoded><![CDATA[<p><em>Testé sur Ubuntu server 8.04LTS</em></p>
<p>Plus ça va plus je trouve que <a href="http://subversion.tigris.org/" target="_blank">subversion</a> (svn) est un outil génial, et pas seulement pour les développeurs. Une fois qu&#8217;on connait l&#8217;adresse du dépot svn d&#8217;une application, ça devient très facile de l&#8217;installer, sous ses différentes versions si besoin, et les mises à jour deviennent très simples.</p>
<p>Par exemple <a href="http://www.typo3.fr/" target="_blank">Typo3</a>. Cet excellent CMS n&#8217;a qu&#8217;un petit défaut, les mises à jour sur un site existant sont parfois délicates, il faut prendre son temps. Du coup c&#8217;est intéressant d&#8217;avoir plusieurs plusieurs versions installées, les sites n&#8217;ayant pas encore été migrés utilisant leur version d&#8217;origine. Avec svn, c&#8217;est tout simple.</p>
<p><span id="more-67"></span>L&#8217;adresse du dépot svn pour typo3 est <a title="Typo3" href="https://typo3.svn.sourceforge.net/svnroot/typo3" target="_blank">https://typo3.svn.sourceforge.net/svnroot/typo3</a>. A partir de là CoreDocs/ donne accès à la documentation, et TYPO3core/ aux sources. Classiquement, on a ensuite trunk/ pour la dernière version de développement, branches/ pour les versions principales (4.0, 4.1, 4.2, etc&#8230;) et tags/ pour les différentes releases (4.0.1, 4.0.2, etc&#8230;). Pour un serveur de production le choix de tags/ est plus raisonnable, branches/ est plus pratique sur une machine de test pour faire des mises à jour avec svn update. Quant à trunk/, c&#8217;est pour les développeurs et les grands joueurs.</p>
<p class="commentitem">Edit du 3/5/2010 :<br />
Le dépot svn typo3 est maintenant à l&#8217;adresse <a href="https://svn.typo3.org/" target="_blank">https://svn.typo3.org/</a><br />
Créer le répertoire typo3 :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>typo3
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>typo3</pre></div></div>

<p>On télécharge les version 4.0.8 et 4.2.0 :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> https:<span style="color: #000000; font-weight: bold;">//</span>typo3.svn.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>svnroot<span style="color: #000000; font-weight: bold;">/</span>typo3<span style="color: #000000; font-weight: bold;">/</span>TYPO3core<span style="color: #000000; font-weight: bold;">/</span>tags<span style="color: #000000; font-weight: bold;">/</span>TYPO3_4-<span style="color: #000000;">0</span>-<span style="color: #000000;">8</span> 4.0.8
<span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> https:<span style="color: #000000; font-weight: bold;">//</span>typo3.svn.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>svnroot<span style="color: #000000; font-weight: bold;">/</span>typo3<span style="color: #000000; font-weight: bold;">/</span>TYPO3core<span style="color: #000000; font-weight: bold;">/</span>tags<span style="color: #000000; font-weight: bold;">/</span>TYPO3_4-<span style="color: #000000;">2</span>-<span style="color: #000000;">0</span> 4.2.0</pre></div></div>

<p>On crée des liens symboliques, latest pour la dernière et éventuellement des liens personnalisés pour les sites qui utilisent les anciennes versions :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> 4.2.0 latest
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> 4.0.8 mesvieuxsites</pre></div></div>

<p>S&#8217;ils ne sont pas encore là on installe les paquets nécessaires à typo3 et on recharge la config Apache :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-gd imagemagick libttf-dev
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 reload</pre></div></div>

<p>Pour un nouveau site, il faut télécharger le package <a href="http://typo3.org/download/packages/" target="_blank">dummy</a> (que je n&#8217;ai pas trouvé sur svn), si comme moi c&#8217;est pour migrer un site sur une nouvelle machine il faut créer le fichier typo3conf/ENABLE_INSTALL_TOOL :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">touch</span> monsite<span style="color: #000000; font-weight: bold;">/</span>typo3conf<span style="color: #000000; font-weight: bold;">/</span>ENABLE_INSTALL_TOOL</pre></div></div>

<p>A la racine du site, on crée le lien symbolique qui va pointer sur la version appropriée de typo3 :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>typo3<span style="color: #000000; font-weight: bold;">/</span>latest typo3_src</pre></div></div>

<p>ensuite se rendre sur http://monsite/typo3/install pour exécuter l&#8217;assistant d&#8217;installation et de mise à jour.</p>
<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></content:encoded>
			<wfw:commentRss>http://tavie.onsenfout.com/2008/05/20/installer-typo3-avec-svn-sur-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mise à jour WordPress avec Subversion</title>
		<link>http://tavie.onsenfout.com/2007/11/12/mise-a-jour-wordpress-avec-subversion/</link>
		<comments>http://tavie.onsenfout.com/2007/11/12/mise-a-jour-wordpress-avec-subversion/#comments</comments>
		<pubDate>Mon, 12 Nov 2007 12:38:57 +0000</pubDate>
		<dc:creator>François</dc:creator>
				<category><![CDATA[Bits]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[sauvegarde]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://tavie.onsenfout.com/2007/11/12/mise-a-jour-wordpress-avec-subversion/</guid>
		<description><![CDATA[Jusqu&#8217;à maintenant je faisais les mises à jour WordPress de la façon laborieuse, en recopiant les fichiers à la mimine. J&#8217;ai profité de la version 2.3.1 pour créer un &#171;&#160;checkout&#160;&#187; subversion qui devrait simplifier les futures mises à jour. J&#8217;ai suivi les instructions du Codex WordPress : Créer un répertoire de blog temporaire mkdir blognew [...]<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></description>
			<content:encoded><![CDATA[<p>Jusqu&#8217;à maintenant je faisais les mises à jour WordPress de la façon laborieuse, en recopiant les fichiers à la mimine. J&#8217;ai profité de la version 2.3.1 pour créer un &laquo;&nbsp;checkout&nbsp;&raquo; subversion qui devrait simplifier les futures mises à jour. J&#8217;ai suivi les instructions du <a title="Créer un checkout subversion" href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion#Converting_a_.22Traditional.22_WordPress_Blog_to_a_Subversion_Checkout" target="_blank">Codex WordPress</a> :</p>
<p>Créer un répertoire de blog temporaire</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> blognew</pre></div></div>

<p>Dans ce répertoire extraire la dernière version stable de WordPress (attention au point à la fin de la commande svn)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> blognew
<span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> http:<span style="color: #000000; font-weight: bold;">//</span>svn.automattic.com<span style="color: #000000; font-weight: bold;">/</span>wordpress<span style="color: #000000; font-weight: bold;">/</span>trunk .</pre></div></div>

<p>Recopier à la main les éléments personnalisés (.htaccess, wp-config.php, wp-content/, etc&#8230;) du répertoire de blog actuel vers le nouveau</p>
<p>Sauvegarder la base de données</p>
<p>Renommer les répertoires :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mv</span> blog blog.save
<span style="color: #c20cb9; font-weight: bold;">mv</span> blognew blog</pre></div></div>

<p>Lancer le script de mise à jour (il n&#8217;y avait pas de mise à jour de la base pour cette version) :</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">http://tavie.onsenfout.com/wp-admin/upgrade.php</pre></div></div>

<p>La prochaine mise à jour (2.3.2 ?) pourra être effectuée avec la commande :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> blog
<span style="color: #c20cb9; font-weight: bold;">svn</span> update</pre></div></div>

<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></content:encoded>
			<wfw:commentRss>http://tavie.onsenfout.com/2007/11/12/mise-a-jour-wordpress-avec-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

