<?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>SimonGaniere.ch &#187; Ruby On Rails</title>
	<atom:link href="http://www.simonganiere.ch/tag/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simonganiere.ch</link>
	<description></description>
	<lastBuildDate>Sun, 04 Jul 2010 20:25:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installer &amp; mettre à jour Ruby On Rails sous Leopard</title>
		<link>http://www.simonganiere.ch/2009/07/25/installer-mettre-a-jour-ruby-on-rails-sous-leopard/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=installer-mettre-a-jour-ruby-on-rails-sous-leopard</link>
		<comments>http://www.simonganiere.ch/2009/07/25/installer-mettre-a-jour-ruby-on-rails-sous-leopard/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 09:36:53 +0000</pubDate>
		<dc:creator>Simon Ganiere</dc:creator>
				<category><![CDATA[Technologies Web]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://www.simonganiere.ch/wp/?p=133</guid>
		<description><![CDATA[Installation / mise à jour sous Leopard Si vous avez la chance de posséder une version de Mac OS X 10.5 Leopard, vous n&#8217;avez pas besoin d&#8217;installer Ruby, Ruby Gems et Ruby on Rails. A noter qu&#8217;il faut également avoir les outils du développeur installés (Developer Tools, téléchargeable gratuitement après enregistrement sur le site d&#8217;Apple). [...]]]></description>
			<content:encoded><![CDATA[<h2>Installation / mise à jour sous Leopard</h2>
<p>Si vous avez la chance de posséder une version de Mac OS X 10.5 Leopard, vous n&#8217;avez pas besoin d&#8217;installer Ruby, Ruby Gems et Ruby on Rails. A noter qu&#8217;il faut également avoir les outils du développeur installés (Developer Tools, téléchargeable gratuitement après enregistrement sur <a title="Developer Site Apple" href="http://developer.apple.com" target="_blank">le site d&#8217;Apple</a>).</p>
<p>Ces différents éléments sont déjà installés par défaut. Par contre les versions de ces logiciels ne sont pas récentes, il s&#8217;agit donc de les mettre à jour, pour y parvenir ouvrez l&#8217;application Terminal et tapez les commandes suivantes:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p133code6'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1336"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p133code6"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> rubygems-update</pre></td></tr></table></div>


<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p133code7'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1337"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p133code7"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> update_rubygems</pre></td></tr></table></div>

<p>Ces deux premières commandes vont mettre à jour les Ruby Gems qui sont actuellement installés sur votre machine. Par la suite une réinstallation de Ruby on Rails avec les commandes suivantes:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p133code8'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1338"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p133code8"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem update</pre></td></tr></table></div>


<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p133code9'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1339"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p133code9"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem update <span style="color: #660033;">--system</span></pre></td></tr></table></div>


<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p133code10'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p13310"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p133code10"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails</pre></td></tr></table></div>

<p>Et voilà le tour est joué <img src='http://www.simonganiere.ch/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonganiere.ch/2009/07/25/installer-mettre-a-jour-ruby-on-rails-sous-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment déployer une application RoR simplement avec Apache 2</title>
		<link>http://www.simonganiere.ch/2008/12/13/comment-deployer-une-application-ror-simplement-avec-apache-2/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=comment-deployer-une-application-ror-simplement-avec-apache-2</link>
		<comments>http://www.simonganiere.ch/2008/12/13/comment-deployer-une-application-ror-simplement-avec-apache-2/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 15:22:11 +0000</pubDate>
		<dc:creator>Simon Ganiere</dc:creator>
				<category><![CDATA[Technologies Web]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://www.simonganiere.ch/wp/?p=70</guid>
		<description><![CDATA[Ruby On Rails est un frameworks de plus en plus utilisé dans le cadre de la réalisation de site internet de type "Web 2.0". De part la simplicité et l'élégance de framework, il est entrain de devenir un de nouveau standard du web. Ceux qui ont déjà essayé de déployer une application RoR avec Apache se sont sûrement rendu compte que cette partie n'était pas la plus facile. Heureusement, une société hollandaise vient de sortir l'outil qu'il manquait !]]></description>
			<content:encoded><![CDATA[<h2>Introduction a Phusion Passenger</h2>
<p>Il s&#8217;agit d&#8217;un module Apache 2 qui permet de déployer de manière simple des applications RoR. Ce module reprend le fondement de Ruby On Rails: simplicité et efficacité. A noter que ce module est développé par une entreprise hollandaise: <a title="Phusion.nl" href="http://www.phusion.nl/about.html" target="_blank">Phusion</a>. Cette entreprise possède actuellement deux produits:</p>
<ul>
<li>Phusion Passenger</li>
<li>Ruby Entreprise Edition: qui permet d&#8217;optimiser l&#8217;exécution d&#8217;application RoR (voir <a title="RubyEnterpriseEdition.com" href="http://www.rubyenterpriseedition.com/" target="_blank">ici</a> pour plus de détails)</li>
</ul>
<h2><strong>Installation</strong></h2>
<p>L&#8217;installation ce fait très simplement, en quelques commandes dans le Terminal:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p70code11'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7011"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p70code11"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> passenger</pre></td></tr></table></div>

<p>ce qui va installer le gem de passager sur votre machine, après il faut encore installer le module Apache 2. Pour ce faire rien de plus facile, laissons Passenger faire le travail:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p70code12'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7012"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p70code12"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> passenger-install-apache2-module</pre></td></tr></table></div>

<p>Les informations suivantes vont s&#8217;afficher dans le Terminal:</p>
<p style="text-align: center;"><img class="size-full wp-image-75  aligncenter" title="Installation Apache 2 Module" src="http://www.simonganiere.ch/wp-content/uploads/2008/12/passenger_install_01.jpg" alt="Installation Apache 2 Module" /></p>
<p>Une fois que vous avez validé avec la touche &#8220;Enter&#8221;, l&#8217;installeur va compiler le module et le déposer au bon endroit. Dans le cas ou un message d&#8217;erreur survenait, les informations nécessaires afin de résoudre cette erreur seraient affichées. Si vous n&#8217;arrivez pas à résoudre cette erreur, n&#8217;hésitez pas à vous rendre sur la <a title="Documentation Passenger - Troubleshooting during installation of Apache 2 Module" href="http://www.modrails.com/documentation/Users%20guide.html#_problems_during_installation" target="_blank">documentation</a> de Passenger.</p>
<p style="text-align: center;"><img class="size-full wp-image-77  aligncenter" title="Confirmation de l'installation du module Apache 2" src="http://www.simonganiere.ch/wp-content/uploads/2008/12/passenger_install_02.jpg" alt="Confirmation de l'installation du module Apache 2" /></p>
<h2><strong>Modification de la configuration d&#8217;Apache 2</strong></h2>
<p>Comme expliquez, il faut maintenant modifier la configuration d&#8217;Apache 2. Copiez les trois lignes que vous devez rajouter et collez-les directement dans le fichier de configuration d&#8217;Apache (fichier httpd.conf se trouvant dans /etc/apache2/, vous devez avoir les autorisations root pour modifier ce fichier). Par la suite redémarrer le serveur Apache (commande: <em>sudo apachectl graceful</em>).</p>
<p>Revenez dans la fenêtre d&#8217;installation du module, validez avec la touche &#8220;Enter&#8221;. Voici les dernières informations concernant la config Apache 2:</p>
<p style="text-align: center;"><img class="size-full wp-image-80  aligncenter" title="Création d'un VirtualHost dans la config Apache 2" src="http://www.simonganiere.ch/wp-content/uploads/2008/12/passenger_install_03.jpg" alt="Création d'un VirtualHost dans la config Apache 2" /></p>
<p>Retour dans la configuration d&#8217;Apache et ajouter simplement le code suivant à la fin du fichier:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p70code13'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7013"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p70code13"><pre class="bash" style="font-family:monospace;">   ServerNane www.votreserver.com
   DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>chemin<span style="color: #000000; font-weight: bold;">/</span>vers<span style="color: #000000; font-weight: bold;">/</span>le<span style="color: #000000; font-weight: bold;">/</span>repertoire<span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/</span>devotre<span style="color: #000000; font-weight: bold;">/</span>application<span style="color: #000000; font-weight: bold;">/</span>RoR</pre></td></tr></table></div>

<p>Modifiez bien sûr ces deux paramètres pour que cela corresponde à vos besoins et voilà le tour et joué !!</p>
<p>Note: par défaut l&#8217;environnement Rails est &#8220;production&#8221; ! Si vous souhaitez changer ceci vous pouvez ajouter la ligne suivante dans votre VirtualHost:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p70code14'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7014"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p70code14"><pre class="bash" style="font-family:monospace;">   ServerNane www.votreserver.com
   DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>chemin<span style="color: #000000; font-weight: bold;">/</span>vers<span style="color: #000000; font-weight: bold;">/</span>le<span style="color: #000000; font-weight: bold;">/</span>repertoire<span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/</span>devotre<span style="color: #000000; font-weight: bold;">/</span>application<span style="color: #000000; font-weight: bold;">/</span>RoR
   <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>RailsEnv development<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.simonganiere.ch/2008/12/13/comment-deployer-une-application-ror-simplement-avec-apache-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
