<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: RubyWorks Production Stack on Amazon EC2</title>
	<atom:link href="http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/feed/" rel="self" type="application/rss+xml" />
	<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/</link>
	<description>nutrun</description>
	<pubDate>Thu, 04 Dec 2008 05:21:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: nutrun &#187; Blog Archive &#187; Phusion Passenger on Amazon EC2</title>
		<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/#comment-1160</link>
		<dc:creator>nutrun &#187; Blog Archive &#187; Phusion Passenger on Amazon EC2</dc:creator>
		<pubDate>Wed, 20 Aug 2008 15:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=112#comment-1160</guid>
		<description>[...] It is assumed that your environment has been previously configured for launching EC2 AMIs. If not, you might want to read the EC2 Getting Started Guide, or refer to the first bits of this article. [...]</description>
		<content:encoded><![CDATA[<p>[...] It is assumed that your environment has been previously configured for launching EC2 AMIs. If not, you might want to read the EC2 Getting Started Guide, or refer to the first bits of this article. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill G.</title>
		<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/#comment-1036</link>
		<dc:creator>Bill G.</dc:creator>
		<pubDate>Mon, 02 Jun 2008 15:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=112#comment-1036</guid>
		<description>This is a great write-up, thanks! It got me close to up-and-running pretty fast. Like commenter #8 above I got hung up on a missing imagemagick install. I can do this manually on the instnace after running cap instance:start, but are there hooks for me to add these steps to my 'instance:start' cap target?

Also I needed to run these commands as well before I could ssh or http to my instance fyi. You might want to add this instruction to the post (or to the gem actually):

ec2-authorize default -p 22
ec2-authorize default -p 80</description>
		<content:encoded><![CDATA[<p>This is a great write-up, thanks! It got me close to up-and-running pretty fast. Like commenter #8 above I got hung up on a missing imagemagick install. I can do this manually on the instnace after running cap instance:start, but are there hooks for me to add these steps to my &#8216;instance:start&#8217; cap target?</p>
<p>Also I needed to run these commands as well before I could ssh or http to my instance fyi. You might want to add this instruction to the post (or to the gem actually):</p>
<p>ec2-authorize default -p 22<br />
ec2-authorize default -p 80</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Robertson</title>
		<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/#comment-733</link>
		<dc:creator>Scott Robertson</dc:creator>
		<pubDate>Thu, 08 May 2008 20:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=112#comment-733</guid>
		<description>I ran capify but did not get the config/server folder. Poking around in rubyworks svn I found this script, which generated the Capfile,deploy.rb and server

capify-for-ec2</description>
		<content:encoded><![CDATA[<p>I ran capify but did not get the config/server folder. Poking around in rubyworks svn I found this script, which generated the Capfile,deploy.rb and server</p>
<p>capify-for-ec2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Robertson</title>
		<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/#comment-729</link>
		<dc:creator>Scott Robertson</dc:creator>
		<pubDate>Thu, 08 May 2008 16:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=112#comment-729</guid>
		<description>I killed the instance and restarted this time with this at the bottom of my Capfile

set :runner, :root

Has gotten me past this error. Not sure if deploying this as the root user is the right thing to do or not.</description>
		<content:encoded><![CDATA[<p>I killed the instance and restarted this time with this at the bottom of my Capfile</p>
<p>set :runner, :root</p>
<p>Has gotten me past this error. Not sure if deploying this as the root user is the right thing to do or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Robertson</title>
		<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/#comment-728</link>
		<dc:creator>Scott Robertson</dc:creator>
		<pubDate>Thu, 08 May 2008 16:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=112#comment-728</guid>
		<description>When I run instance:bootstrap I receive the following error 
 * executing `deploy:setup'
  * executing "umask 02 &#38;&#38; mkdir -p /usr/team_maker /usr/team_maker/releases /usr/team_maker/shared /usr/team_maker/shared/system /usr/team_maker/shared/log /usr/team_maker/shared/pids"
    servers: ["ec2-75-101-218-41.compute-1.amazonaws.com"]
    [ec2-75-101-218-41.compute-1.amazonaws.com] executing command
*** [err :: ec2-75-101-218-41.compute-1.amazonaws.com] sudo: no passwd entry for app!
    command finished
command "umask 02 &#38;&#38; mkdir -p /usr/team_maker /usr/team_maker/releases /usr/team_maker/shared /usr/team_maker/shared/system /usr/team_maker/shared/log /usr/team_maker/shared/pids" failed on ec2-75-101-218-41.compute-1.amazonaws.com

Poking around in the instance, it seems that there is no 'app' user.</description>
		<content:encoded><![CDATA[<p>When I run instance:bootstrap I receive the following error<br />
 * executing `deploy:setup&#8217;<br />
  * executing &#8220;umask 02 &amp;&amp; mkdir -p /usr/team_maker /usr/team_maker/releases /usr/team_maker/shared /usr/team_maker/shared/system /usr/team_maker/shared/log /usr/team_maker/shared/pids&#8221;<br />
    servers: ["ec2-75-101-218-41.compute-1.amazonaws.com"]<br />
    [ec2-75-101-218-41.compute-1.amazonaws.com] executing command<br />
*** [err :: ec2-75-101-218-41.compute-1.amazonaws.com] sudo: no passwd entry for app!<br />
    command finished<br />
command &#8220;umask 02 &amp;&amp; mkdir -p /usr/team_maker /usr/team_maker/releases /usr/team_maker/shared /usr/team_maker/shared/system /usr/team_maker/shared/log /usr/team_maker/shared/pids&#8221; failed on ec2-75-101-218-41.compute-1.amazonaws.com</p>
<p>Poking around in the instance, it seems that there is no &#8216;app&#8217; user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Malamidis</title>
		<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/#comment-355</link>
		<dc:creator>George Malamidis</dc:creator>
		<pubDate>Wed, 26 Mar 2008 16:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=112#comment-355</guid>
		<description>Emil,

Thanks for your comments. I've updated the article to include the missing "set" directives. I think it's worthwhile to note that the bootstrap task will not "rollback", that is, if any of the tasks fail, whichever tasks ran before the failure will still take effect.</description>
		<content:encoded><![CDATA[<p>Emil,</p>
<p>Thanks for your comments. I&#8217;ve updated the article to include the missing &#8220;set&#8221; directives. I think it&#8217;s worthwhile to note that the bootstrap task will not &#8220;rollback&#8221;, that is, if any of the tasks fail, whichever tasks ran before the failure will still take effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emil tin</title>
		<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/#comment-347</link>
		<dc:creator>emil tin</dc:creator>
		<pubDate>Sat, 22 Mar 2008 16:21:17 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=112#comment-347</guid>
		<description>(feel free to moderate my flood of comments :-) )

Ok, the default page i described above was caused by lack of the config/server folder. Some problem as with the package list, I didn't use capify, so they were never created in my local app folder. Once I got that folder created and added to SVN, things worked much better.

But now I have a different problem - during bootstrapping, the command 'etc/init.d/mysql start' fails:

**[out :: ...... ] Starting MySQL database server: mysqld . . . . . . . . . .  failed!

Never the less, it seems that mysql is in fact running. If I perform the rest of the tasks (performed by bootstrapping) manually, my app is working fine, and can be viewed in my browser.</description>
		<content:encoded><![CDATA[<p>(feel free to moderate my flood of comments <img src='http://nutrun.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</p>
<p>Ok, the default page i described above was caused by lack of the config/server folder. Some problem as with the package list, I didn&#8217;t use capify, so they were never created in my local app folder. Once I got that folder created and added to SVN, things worked much better.</p>
<p>But now I have a different problem - during bootstrapping, the command &#8216;etc/init.d/mysql start&#8217; fails:</p>
<p>**[out :: ...... ] Starting MySQL database server: mysqld . . . . . . . . . .  failed!</p>
<p>Never the less, it seems that mysql is in fact running. If I perform the rest of the tasks (performed by bootstrapping) manually, my app is working fine, and can be viewed in my browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emil tin</title>
		<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/#comment-346</link>
		<dc:creator>emil tin</dc:creator>
		<pubDate>Sat, 22 Mar 2008 12:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=112#comment-346</guid>
		<description>I successfully run:

cap instance:start
(copy instance id and address to deploy.rb)
cap deploy
cap deploy:migrate

So far so good. But when I point my browser at the server, I'm just redirected to /apache2-default/, and get a white page with the words "It Works!", nothing else. If  I run cap monit:status, I can see that the four mongrels are running. log/production.log is empty except for the line "# Logfile created on Sat Mar 22 12:12:23 +0000 2008".

What could be wrong, and how I can fix it? Is there a forum for rubyworks-ec2? Thanks!</description>
		<content:encoded><![CDATA[<p>I successfully run:</p>
<p>cap instance:start<br />
(copy instance id and address to deploy.rb)<br />
cap deploy<br />
cap deploy:migrate</p>
<p>So far so good. But when I point my browser at the server, I&#8217;m just redirected to /apache2-default/, and get a white page with the words &#8220;It Works!&#8221;, nothing else. If  I run cap monit:status, I can see that the four mongrels are running. log/production.log is empty except for the line &#8220;# Logfile created on Sat Mar 22 12:12:23 +0000 2008&#8243;.</p>
<p>What could be wrong, and how I can fix it? Is there a forum for rubyworks-ec2? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emil tin</title>
		<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/#comment-345</link>
		<dc:creator>emil tin</dc:creator>
		<pubDate>Fri, 21 Mar 2008 21:50:16 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=112#comment-345</guid>
		<description>Hi, this looks great!
However, when trying to follow your instructions, bootstrapping failed with the error: 
 * executing `instance:install_packages'
/opt/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/configuration/namespaces.rb:187:in `method_missing': undefined local variable or method `packages' for # (NameError)

After looking in the source i figured that I needed to add the following lines to deploy.rb:
set :packages, %w(apache2 subversion mysql-server libmysql-ruby less)
set :gems, %w(aws-s3 ezcrypto)

After that it works. You might include the lines in the instructions on this page. I didn't use capify because I'm migrating from a previous setup, so I didn't get the two lines automatically, and was puzzled at first.</description>
		<content:encoded><![CDATA[<p>Hi, this looks great!<br />
However, when trying to follow your instructions, bootstrapping failed with the error:<br />
 * executing `instance:install_packages&#8217;<br />
/opt/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/configuration/namespaces.rb:187:in `method_missing&#8217;: undefined local variable or method `packages&#8217; for # (NameError)</p>
<p>After looking in the source i figured that I needed to add the following lines to deploy.rb:<br />
set :packages, %w(apache2 subversion mysql-server libmysql-ruby less)<br />
set :gems, %w(aws-s3 ezcrypto)</p>
<p>After that it works. You might include the lines in the instructions on this page. I didn&#8217;t use capify because I&#8217;m migrating from a previous setup, so I didn&#8217;t get the two lines automatically, and was puzzled at first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Jones</title>
		<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/#comment-311</link>
		<dc:creator>Mike Jones</dc:creator>
		<pubDate>Thu, 07 Feb 2008 09:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=112#comment-311</guid>
		<description>Hey George this is awesome, got me up and running in no time at all..
\m/&#38;gt;_</description>
		<content:encoded><![CDATA[<p>Hey George this is awesome, got me up and running in no time at all..<br />
\m/&#38;gt;_</p>
]]></content:encoded>
	</item>
</channel>
</rss>
