<?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>Sentia &#124; Sydney IT Consultancy, Software Development, Ruby on Rails, Web Application Development, Rails Development, Test Driven Development, Microsoft.Net, Asp.Net , Agile, Continuous Integration Training, iPhone development &#187; passenger</title>
	<atom:link href="http://www.sentia.com.au/category/passenger/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sentia.com.au</link>
	<description>Sentia company website and blog about all things development, Ruby on Rails, Microsoft .Net, ASP.Net, C#.Net, Agile web development, Test Driven Development</description>
	<lastBuildDate>Fri, 27 Aug 2010 05:10:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using passenger to run your rails applications when developing</title>
		<link>http://www.sentia.com.au/2009/09/using-passenger-to-run-your-rails-applications-when-developing/</link>
		<comments>http://www.sentia.com.au/2009/09/using-passenger-to-run-your-rails-applications-when-developing/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 07:21:04 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://sentia.com.au/?p=494</guid>
		<description><![CDATA[If your like me and sick of having to run ./script/server every time you want to start your rails app using passenger locally is for you then. First thing is to install passenger like so

sudo gem install passenger

Then you need to install the apache module for passenger.

sudo passenger-install-apache2-module

Now once you do this you will be [...]]]></description>
			<content:encoded><![CDATA[<p>If your like me and sick of having to run ./script/server every time you want to start your rails app using passenger locally is for you then. First thing is to install passenger like so</p>
<pre class="brush: ruby;">
sudo gem install passenger
</pre>
<p>Then you need to install the apache module for passenger.</p>
<pre class="brush: ruby;">
sudo passenger-install-apache2-module
</pre>
<p>Now once you do this you will be told to all the following lines to your httpd.conf file in apache. Now you can just add these lines no problems but l like to have it in its own conf file and since apache will also load all conf files in /etc/apache2/other/ directory just create a  passenger.conf file and add those lines in. Now these lines are different depending on how you installed ruby. I installed it in user/local keeping the orginal ruby version that ships with mac clean so mine looks like so</p>
<pre class="brush: ruby;">
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5
PassengerRuby /usr/local/bin/ruby
</pre>
<p>To create the new passenger.conf file just run the below command assuming you have textmate installed.</p>
<pre class="brush: ruby;">
mate /etc/apache2/other/passenger.conf
</pre>
<p>Once you have cut and pasted those lines in save it and close the file. You then need to download the <a href=" http://www.fngtps.com/passenger-preference-pane">passenger preference pane</a>. Here is a link to the latest build <a href="http://www.fngtps.com/files/2/2009/09/PassengerPane-1.3.tgz">passenger-preference-pane1.3</a>. Download and install then fire it up.</p>
<p><img src="http://sentia.com.au/wp-content/uploads/2009/09/passenger_preference_pane.png" alt="Passenger preference pane"  height="382px" width="500px" title="Using passenger to run your rails applications when developing" /></p>
<p>Now unlock it if need be and click on the + button to add a new site. A window will pop up and now just select the root of your rails app and click &#8220;open&#8221;. You can now change the address if need be but just defaults to (rails_app_name).local. Hit apply and your good to go.</p>
<p>So go back to your browser and type in that address and it will fire up and your up and running. Now you wont see the log like you are used to since your not running webrick etc but all you have to do is tail the development log by going to the root dir of your application in terminal and typing the following</p>
<pre class="brush: ruby;">
 tail -f log/development.log
</pre>
<p>And that&#8217;s it. You will need to restart passenger if you change the environment.rb file but thats simple enough via the preference pane. So no more ./script/server yay</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2009/09/using-passenger-to-run-your-rails-applications-when-developing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
