<?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>42 &#187; capistrano</title>
	<atom:link href="http://www.42.mach7x.com/tag/capistrano/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.42.mach7x.com</link>
	<description>Thoughts and tips about programming with Ruby on Rails</description>
	<lastBuildDate>Wed, 01 Feb 2012 14:38:36 +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>problem using capistrano on deployment server after server ip address change</title>
		<link>http://www.42.mach7x.com/2011/06/27/problem-using-capistrano-on-deployment-server-after-server-ip-address-change/</link>
		<comments>http://www.42.mach7x.com/2011/06/27/problem-using-capistrano-on-deployment-server-after-server-ip-address-change/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 12:45:30 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Capistrano]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[change ip address]]></category>
		<category><![CDATA[deploying]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=356</guid>
		<description><![CDATA[Problem After changing the IP address of your staging server the cap deploy does not work any more and gives you the following error: ** [192.168.0.50 :: err] Host key verification failed. ** [192.168.0.50 :: err] fatal: The remote end hung up unexpectedly Solution You would need to login to your staging server (as your [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
After changing the IP address of your staging server the cap deploy does not work any more and gives you the following error:</p>
<p><code>** [192.168.0.50 :: err] Host key verification failed.<br />
 ** [192.168.0.50 :: err] fatal: The remote end hung up unexpectedly</code></p>
<p><strong>Solution</strong><br />
You would need to login to your staging server (as your deployment user) and do an initial checkout for one time for the ssh keys to work.<br />
So you could do something like the following:</p>
<p><code>$ ssh user_name@staging_server<br />
$sh -c 'git clone -q git_user@192.168.0.50:repo_name /some/tmp/dir/temp_repo_name</code></p>
<p>Make sure that you reply &#8216;y&#8217; to the question about the authenticity of the host as in:<br />
<code>The authenticity of host '192.168.0.50 (192.168.0.50)' can't be established.<br />
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xxb.<br />
Are you sure you want to continue connecting (yes/no)? yes<br />
Warning: Permanently added '192.168.0.50' (RSA) to the list of known hosts.</code></p>
<p>Net delete the newly created git project from your tmp directory, and then you should be able to use cap deploy as normal again from your development pc</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/06/27/problem-using-capistrano-on-deployment-server-after-server-ip-address-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capistrano output colours</title>
		<link>http://www.42.mach7x.com/2011/03/04/capistrano-output-colours/</link>
		<comments>http://www.42.mach7x.com/2011/03/04/capistrano-output-colours/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 12:12:01 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Capistrano]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[colours]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=322</guid>
		<description><![CDATA[Problem You would like to have colours in the output of your capistrano tasks similar to the ones in cucumber, indicating errors (red) or completed actions(green). Solution Install the capistrano_colours gem that can be found here. sudo gem install capistrano_colors]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You would like to have colours in the output of your capistrano tasks similar to the ones in cucumber, indicating errors (red) or completed actions(green).</p>
<p><strong>Solution</strong><br />
Install the capistrano_colours gem that can be found <a href="https://github.com/stjernstrom/capistrano_colors">here</a>.<br />
<code>sudo gem install capistrano_colors</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/03/04/capistrano-output-colours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading your Rails 3.0.3 application</title>
		<link>http://www.42.mach7x.com/2011/02/10/upgrading-your-rails-3-0-3-application/</link>
		<comments>http://www.42.mach7x.com/2011/02/10/upgrading-your-rails-3-0-3-application/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 19:45:28 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Capistrano]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[Ruby on Rails 3.0.3]]></category>
		<category><![CDATA[Ruby on Rails 3.0.4]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=313</guid>
		<description><![CDATA[Problem After the announcements in the previous posts about the security vulnerabilities in Rails 3.0.3, you would like to update your application and deploy with the latest 3.0.4 version. Solution Change your Gemfile to replace gem 'rails', '3.0.3' with gem 'rails', '3.0.4' Run: bundle update rails Remove the old gems by using: git status and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
After the announcements in the previous posts about the security vulnerabilities in Rails 3.0.3, you would like to update your application and deploy with the latest 3.0.4 version.</p>
<p><strong>Solution</strong></p>
<ul>
<li>Change your Gemfile to replace<br />
              <code>gem 'rails', '3.0.3'</code><br />
              with<br />
              <code>gem 'rails', '3.0.4'</code></li>
<li>Run:<br />
             <code>bundle update rails</code></li>
<li>Remove the old gems by using:<br />
             <code>git status</code><br />
             and then<br />
             <code>git rm name_of_3.0.3_gem</code></li>
<li>Add the new gems to your git<br />
              <code>git add vendor/cache</code></li>
<li>Check in to your repository the new files<br />
             <code>git commit vendor/cache -m 'upgrade to rails 3.0.4'</code></li>
<li>Make sure that you also check in both your Gemfile and Gemfile.lock into your git repository<br />
             <code>git commit Gemfile Gemfile.lock -m 'update Gemfiles to use 3.0.4'</code><br />
             otherwise when you try to deploy you will see the error:<br />
             <code>You have modified your Gemfile in development but did not check the resulting snapshot (Gemfile.lock) into version control</code></li>
<li>push everything to your git repository:<br />
              <code>git push</code></li>
<li>Deploy your application with capistrano as usual:<br />
             <code>cap deploy</code></li>
<li>Your new gems for 3.0.4 should be installed on the share/bundle folder</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/02/10/upgrading-your-rails-3-0-3-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Internal 500 server error &#8211; Dreamhost &#8211; Rails 3.0.3 &#8211; Capistrano</title>
		<link>http://www.42.mach7x.com/2011/01/13/internal-500-server-error-dreamhost-rails-3-0-3-capistrano/</link>
		<comments>http://www.42.mach7x.com/2011/01/13/internal-500-server-error-dreamhost-rails-3-0-3-capistrano/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 12:31:42 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Capistrano]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[500 Internal Server Error]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[Rails 3.0.3]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=292</guid>
		<description><![CDATA[Problem You want to deploy your Rails 3.0.3 in Dreamhost with capistrano, but even though you follow the steps from a previous post here, when you go to the application&#8217;s main page you still get an error: 500 Internal Server Error Solution Thanks to a blog post from Brendon Wilson here, the last missing piece [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You want to deploy your Rails 3.0.3 in Dreamhost with capistrano, but even though you follow the steps from a previous post <a href="http://www.42.mach7x.com/2011/01/13/rails-3-bundler-dreamhost-capistrano/">here</a>, when you go to the application&#8217;s main page you still get an error: </p>
<p><code>500 Internal Server Error</code></p>
<p><strong>Solution</strong><br />
Thanks to a blog post from Brendon Wilson <a href="http://www.brendonwilson.com/blog/2011/01/07/rails-3-on-dreamhost-via-capistrano/">here</a>, the last missing piece from the puzzle in order to have your application running is to add the following line to the top of your deploy.rb file:</p>
<p><code>require 'bundler/capistrano'</code></p>
<p>and redo your cap deploy.</p>
<p>Thanks Brendon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/01/13/internal-500-server-error-dreamhost-rails-3-0-3-capistrano/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3 &#8211; Bundler &#8211; Dreamhost &#8211; Capistrano</title>
		<link>http://www.42.mach7x.com/2011/01/13/rails-3-bundler-dreamhost-capistrano/</link>
		<comments>http://www.42.mach7x.com/2011/01/13/rails-3-bundler-dreamhost-capistrano/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 12:01:39 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Capistrano]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[bundler]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[Rails 3.0.3]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=289</guid>
		<description><![CDATA[Problem You want to deploy your Rails (3.0.3) application to Dreamhost using Capistrano, but you get errors like: bundle command not found or Enter your password to install the bundled RubyGems to your system: Solution You may be able to see in your deploy.rb file a commented section that says the following: As Capistrano executes [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You want to deploy your Rails (3.0.3) application to Dreamhost using Capistrano, but you get errors like:</p>
<p><code>bundle command not found</code><br />
or<br />
<code>Enter your password to install the bundled RubyGems to your system:</code></p>
<p><strong>Solution</strong><br />
You may be able to see in your deploy.rb file a commented section that says the following:</p>
<blockquote><p>As Capistrano executes in a non-interactive mode and therefore doesn&#8217;t cause<br />
any of your shell profile scripts to be run &#8230;.</p></blockquote>
<p>So in order for capistrano to be able to find your bundle command you should add in your deploy.rb file a line with your paths (ie):</p>
<p><code>default_environment['PATH']='/usr/lib/ruby/gems/1.8/bin:/home/your_name/.gems/bin:/usr/local/bin:/usr/bin:/bin'</code></p>
<p>If you have the previous line your bundle command can run, but if you try to do cap:deploy your bundler will probably give you an error as it would ask for your sudo password. In order to avoid this error and to make it work you have to add another line with your gem path (ie):</p>
<p><code>default_environment['GEM_PATH']='/home/your_name/.gems:/usr/lib/ruby/gems/1.8'</code></p>
<p>making sure that your home directory path for your gems is first in the list.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/01/13/rails-3-bundler-dreamhost-capistrano/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>capistrano deployment fails after dreamhost server move</title>
		<link>http://www.42.mach7x.com/2010/10/08/capistrano-deployment-fails-after-dreamhost-server-move/</link>
		<comments>http://www.42.mach7x.com/2010/10/08/capistrano-deployment-fails-after-dreamhost-server-move/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 10:27:29 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Capistrano]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[move]]></category>
		<category><![CDATA[permission denied]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=259</guid>
		<description><![CDATA[Problem You have set up your capistrano recipe for deployment to dreamhost using password less logins, but after dreamhost moves your git repository server to a different server, the deployment breaks, with &#8216;permission denied&#8217; when trying to get the git repository. Solution As the server was moved you would need to copy your ssh public [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You have set up your capistrano recipe for deployment to dreamhost using password less logins, but after dreamhost moves your git repository server to a different server, the deployment breaks, with &#8216;permission denied&#8217; when trying to get the git repository.</p>
<p><strong>Solution</strong><br />
As the server was moved you would need to copy your ssh public key from the deployment server to the new server again for the password-less logins to work again.<br />
Follow the details <a href="http://www.42.mach7x.com/2008/02/06/password-less-logins-and-aliases-with-ssh/">here</a> how to copy your public key across, login in once with your password, and after that your capistrano recipe should be working again as normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2010/10/08/capistrano-deployment-fails-after-dreamhost-server-move/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deploying a Rails project in a server that hosts the git repository</title>
		<link>http://www.42.mach7x.com/2010/09/20/deploying-a-rails-project-in-a-server-that-hosts-the-git-repository/</link>
		<comments>http://www.42.mach7x.com/2010/09/20/deploying-a-rails-project-in-a-server-that-hosts-the-git-repository/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 23:07:34 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Capistrano]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[local repository]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=228</guid>
		<description><![CDATA[Problem You want to deploy your project in a server (dreamhost), that also hosts your git repository. When you try to do that by only setting the set_repository, you get errors like &#8216;permission denied, please try again&#8217;, even though if you try to checkout the git repository on your server works. Solution Set your :repository [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You want to deploy your project in a server (dreamhost), that also hosts your git repository. When you try to do that by only setting the set_repository, you get errors like &#8216;permission denied, please try again&#8217;, even though if you try to checkout the git repository on your server works.</p>
<p><strong>Solution</strong><br />
Set your :repository as a file in your host as in:<br />
<code>set :repository, "file:///home/username/git_on_server/projects/repo_name.git"</code></p>
<p>
Then also set up your local_repository, as in:<br />
<code>set :local_repository,  "user_name@server_domain_name:/home/username/git_on_server/projects/repo_name.git"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2010/09/20/deploying-a-rails-project-in-a-server-that-hosts-the-git-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RubyGem version error: rack(0.3.0 not ~&gt; 1.0.0)</title>
		<link>http://www.42.mach7x.com/2009/08/24/rubygem-version-error-rack0-3-0-not-1-0-0/</link>
		<comments>http://www.42.mach7x.com/2009/08/24/rubygem-version-error-rack0-3-0-not-1-0-0/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 16:45:00 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[rack]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=125</guid>
		<description><![CDATA[Problem Trying to deploy in dreamhost with capistrano you get the error: RubyGem version error: rack(0.3.0 not ~> 1.0.0) Solution Log in with ssh to your dreamhost account and then install the newer version of rack that is not yet installed in dreamhost: gem install rack That assumes that you have followed the instructions for [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
Trying to deploy in dreamhost with capistrano you get the error:</p>
<p><span class="code">RubyGem version error: rack(0.3.0 not ~> 1.0.0) </span></p>
<p><strong>Solution</strong><br />
Log in with ssh to your dreamhost account and then install the newer version of rack that is not yet installed in dreamhost:</p>
<p><span class="code">gem install rack</span></p>
<p>That assumes that you have followed the instructions for setting up your local gems in dreamhost (<a href="http://wiki.dreamhost.com/index.php/Ruby_on_Rails#Using_Gems_Installed_in_Your_Home_Directory">here</a>) and you already have a ~/username/.gems directory.</p>
<p>You may probably need to also add the following to your config/environment.rb :</p>
<p><span class="code">ENV['GEM_PATH'] = &#8216;/home/USERNAME/.gems&#8217;</span></p>
<p><strong>Note 09-Sep-2009</strong><br />
It seems that according to the dreamhost wiki we need to add the following to the config/environment.rb, instead of the line above:</p>
<p><span class="code">if ENV['RAILS_ENV'] == &#8216;production&#8217;<br />
    ENV['GEM_PATH'] = &#8216;/home/USERNAME/.gems&#8217;<br />
    require &#8216;/home/USERNAME/.gems/gems/rack-1.0.0/lib/rack.rb&#8217;<br />
end</span></p>
<p>to use the locally installed rack-1.0.0 gem, instead of the rack installed by dreamhost.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2009/08/24/rubygem-version-error-rack0-3-0-not-1-0-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dreamhost, Rails 2.1.1, Freeze, Capistrano</title>
		<link>http://www.42.mach7x.com/2008/09/17/dreamhost-rails-211-freeze-capistrano/</link>
		<comments>http://www.42.mach7x.com/2008/09/17/dreamhost-rails-211-freeze-capistrano/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 11:29:37 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[rails 2.1.1]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=45</guid>
		<description><![CDATA[Problem With the imminent upgrade in Dreamhost to Rails 2.1.1 (dreamhost blog post here), you may want to freeze your Rails version to a previous version, using capistrano. Solution On your local development pc freeze the rails: rake rails:freeze:gems Add the new code to your svn repository: svn commit -m 'freeze rails' And then deploy [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
With the imminent upgrade in Dreamhost to Rails 2.1.1 (dreamhost blog post <a href="http://www.dreamhoststatus.com/2008/09/16/rails-211-is-coming/">here</a>), you may want to freeze your Rails version to a previous version, using capistrano.</p>
<p>
<strong>Solution</strong><br />
On your local development pc freeze the rails:</p>
<pre class="code">rake rails:freeze:gems</pre>
<p>Add the new code to your svn repository:</p>
<pre class="code">svn commit -m 'freeze rails'</pre>
<p>And then deploy to dreamhost using capistrano:</p>
<pre class="code">cap deploy</pre>
<p>Your rails project located on dreamhost should be frozen to your current Rails version.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2008/09/17/dreamhost-rails-211-freeze-capistrano/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Developing in Rails 2.1 and deploying in Rails 2.0.2 (or error &#8211; undefined method time_zone)</title>
		<link>http://www.42.mach7x.com/2008/07/16/developing-in-rails-21-and-deploying-in-rails-202-or-error-undefined-method-time_zone/</link>
		<comments>http://www.42.mach7x.com/2008/07/16/developing-in-rails-21-and-deploying-in-rails-202-or-error-undefined-method-time_zone/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 12:48:17 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[rails 2.0.2]]></category>
		<category><![CDATA[Rails 2.1]]></category>
		<category><![CDATA[undefined method=time zone]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=39</guid>
		<description><![CDATA[Problem You are developing on the latest version of Rails (2.1), but your production server for deployment uses version 2.0.2 (as dreamhost is using at the moment). Solution First change the environment.rb file to use the rails version in your deployment server RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION You should probably be geting the error: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You are developing on the latest version of Rails (2.1), but your production server for deployment uses version 2.0.2 (as dreamhost is using at the moment). </p>
<p><strong>Solution</strong></p>
<ol>
<li>First change the environment.rb file to use the rails version in your deployment server
<pre class="code">RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
</pre>
</li>
<li>You should probably be geting the error: <i>undefined method = time zone </i> by now, so make sure you comment out from further down your environment.rb file the line:
<pre class="code">config.time_zone = 'UTC'</pre>
</li>
<li>Some further errors would be caused by the file config/initializers/new_rails_defaults.rb, so make sure you comment out the following lines:
<pre class="code">ActiveRecord::Base.include_root_in_json = true
ActiveRecord::Base.store_full_sti_class = true
ActiveSupport.use_standard_json_time_format = true
ActiveSupport.use_standard_json_time_format = true</pre>
</li>
</ol>
<p>You should be able to deploy and use your application now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2008/07/16/developing-in-rails-21-and-deploying-in-rails-202-or-error-undefined-method-time_zone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

