<?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; production</title>
	<atom:link href="http://www.42.mach7x.com/tag/production/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>Fri, 06 Aug 2010 11:57:17 +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>Running script/runner in production environment</title>
		<link>http://www.42.mach7x.com/2008/09/30/running-scriptrunner-in-production-environment/</link>
		<comments>http://www.42.mach7x.com/2008/09/30/running-scriptrunner-in-production-environment/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 11:47:56 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[email scheduling]]></category>
		<category><![CDATA[production]]></category>
		<category><![CDATA[script/runner]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=47</guid>
		<description><![CDATA[Problem Following from a previous post about email scheduling with runner and cron, it turns out that the runner default behaviour is to run in the development environment. Solution Although by reading the help for the script/runner, there is a suggestion to run it with the -e production added to the end, it doesn&#8217;t seem [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
Following from a previous post <a href="http://www.42.mach7x.com/2008/06/11/ruby-on-rails-email-scheduling-using-runner-and-cron/">about email scheduling with runner and cron</a>, it turns out that the runner default behaviour is to run in the development environment.</p>
<p><strong>Solution</strong><br />
Although by reading the help for the script/runner, there is a suggestion to run it with the <quote>-e production</quote> added to the end, it doesn&#8217;t seem to be working.</p>
<p>The solution to make it running in the production environment was to delete the first line (shebang) from step 3 on this <a href="http://www.42.mach7x.com/2008/06/11/ruby-on-rails-email-scheduling-using-runner-and-cron/">post</a></p>
<pre class="code">#!/usr/bin/env /path_to_your_app/script/runner</pre>
<p>and then use the following in the cron setup:</p>
<pre class="code">RAILS_ENV=production /path/to/your_ror_project/script/runner /path/to/your_ror_project/lib/email_scheduler.rb</pre>
<p>Have a look on paragraph <b>Alternative Usage</b> <a href="http://wiki.rubyonrails.org/rails/pages/RunnerScript">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2008/09/30/running-scriptrunner-in-production-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cap deploy_with_migrations default behaviour</title>
		<link>http://www.42.mach7x.com/2007/11/30/cap-deploy_with_migrations-default-behaviour/</link>
		<comments>http://www.42.mach7x.com/2007/11/30/cap-deploy_with_migrations-default-behaviour/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 10:35:31 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[migrations]]></category>
		<category><![CDATA[production]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/2007/11/30/cap-deploy_with_migrations-default-behaviour/</guid>
		<description><![CDATA[Problem When using cap deploy_with_migrations, the default behaviour is to deploy with the migrations in the production environment. Solution To change this behavior add: set :rails_env, "development" in your config/deploy.rb]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
When using <em>cap deploy_with_migrations</em>, the default behaviour is to deploy with the migrations in the production environment.</p>
<p><strong>Solution</strong><br />
To change this behavior add:</p>
<pre class="code">
set  :rails_env,  "development"</pre>
<p>in your config/deploy.rb</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2007/11/30/cap-deploy_with_migrations-default-behaviour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
