<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ruby on Rails Stack on WebFaction</title>
	<atom:link href="http://zownir.net/2008/04/11/ruby-on-rails-stack-on-webfaction/feed" rel="self" type="application/rss+xml" />
	<link>http://zownir.net/2008/04/11/ruby-on-rails-stack-on-webfaction</link>
	<description></description>
	<lastBuildDate>Fri, 26 Jun 2009 17:27:19 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ronald M. Zownir</title>
		<link>http://zownir.net/2008/04/11/ruby-on-rails-stack-on-webfaction/comment-page-1#comment-8</link>
		<dc:creator>Ronald M. Zownir</dc:creator>
		<pubDate>Fri, 26 Jun 2009 17:27:19 +0000</pubDate>
		<guid isPermaLink="false">urn:uuid:{a.guid}#comment-8</guid>
		<description>Andrew, extra.sh works as far as I can tell, except for the memcached gem, which is picky about the version of libmemcached. CouchDB requires a little bit of configuration. First of all, when starting couchdb, you may get a crash dump saying that libjs.so cannot be found. The fix is to add it to the load path. Start couchdb like so: &lt;code&gt;export LD_LIBRARY_PATH=$PREFIX/spidermonkey/lib &amp;&amp; couchdb&lt;/code&gt; or add the first part of the command to &lt;code&gt;.bashrc&lt;/code&gt;. Secondly, you have to edit &lt;code&gt;$PREFIX/etc/couchdb/local.ini&lt;/code&gt;. Under the &lt;code&gt;[httpd]&lt;/code&gt; heading, set &lt;code&gt;port&lt;/code&gt; to the port you want couchdb to be on. If you haven&#039;t done so already, create a new app in the WebFaction control panel (&quot;app listening on port&quot;). Next under &lt;code&gt;bind_address&lt;/code&gt; make it the ip address of the server. If the binding is 127.0.0.1, then couchdb will only be accessible locally (by the server itself). If you want couchdb to be publicly available (to your browser), couchdb must be bound to your server&#039;s ip address. If you choose to make couchdb publicly available, go to the &lt;code&gt;[admins]&lt;/code&gt; heading (remove the semicolon before it to  uncomment), and set up a privileged couchdb user. The plaintext password will be hashed and replaced by couchdb the next time you start it. I hope this helps.</description>
		<content:encoded><![CDATA[<p>Andrew, extra.sh works as far as I can tell, except for the memcached gem, which is picky about the version of libmemcached. CouchDB requires a little bit of configuration. First of all, when starting couchdb, you may get a crash dump saying that libjs.so cannot be found. The fix is to add it to the load path. Start couchdb like so: <code>export LD_LIBRARY_PATH=$PREFIX/spidermonkey/lib &#038;&#038; couchdb</code> or add the first part of the command to <code>.bashrc</code>. Secondly, you have to edit <code>$PREFIX/etc/couchdb/local.ini</code>. Under the <code>[httpd]</code> heading, set <code>port</code> to the port you want couchdb to be on. If you haven&#8217;t done so already, create a new app in the WebFaction control panel (&#8220;app listening on port&#8221;). Next under <code>bind_address</code> make it the ip address of the server. If the binding is 127.0.0.1, then couchdb will only be accessible locally (by the server itself). If you want couchdb to be publicly available (to your browser), couchdb must be bound to your server&#8217;s ip address. If you choose to make couchdb publicly available, go to the <code>[admins]</code> heading (remove the semicolon before it to  uncomment), and set up a privileged couchdb user. The plaintext password will be hashed and replaced by couchdb the next time you start it. I hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald M. Zownir</title>
		<link>http://zownir.net/2008/04/11/ruby-on-rails-stack-on-webfaction/comment-page-1#comment-5</link>
		<dc:creator>Ronald M. Zownir</dc:creator>
		<pubDate>Mon, 12 Jan 2009 02:36:14 +0000</pubDate>
		<guid isPermaLink="false">urn:uuid:{a.guid}#comment-5</guid>
		<description>Ram,

As far as memory is concerned, you have to work within the constraints of rails&#039; overhead memory usage and the memory required by your particular application. Overhead is the amount of memory required per rails instance running a skeleton rails application. Memory usage permitting, you can certainly run multiple rails apps on &lt;a href=&quot;http://www.webfaction.com/?affiliate=rzownir&quot; rel=&quot;nofollow&quot;&gt;WebFaction&lt;/a&gt;. I&#039;d advise you to take a look at the memory usage on your development machine and choose your plan accordingly. My script sets up two thin instances for the sample app, but for your purposes you may only need one thin instance per app.

Regarding your first enumerated question, it&#039;s trivial to run multiple applications on &quot;the same nginx&quot;. You will have to duplicate the vhost configuration and make some small changes. For starters, you would create a &quot;new app listening on port&quot; from the &lt;a href=&quot;http://www.webfaction.com/?affiliate=rzownir&quot; rel=&quot;nofollow&quot;&gt;WebFaction&lt;/a&gt; control panel. Take note of the port assigned to you. Duplicate the vhost file provided by the script and change the listening port to the port just assigned to you. Change the application path to the path of the new application in the vhost config file. Change the upstream socket paths to correspond with the new rails application&#039;s thin sockets. You&#039;ll also have to duplicate the info in the monitrc file that defines the thin servers for the first app and make sensible changes to reflect your new app. The last thing to do is to reload the nginx configuration and reload the monit configuration. (The quick and easy way is to kill nginx and quit monit, then start monit.)

In response to your second enumerated question, you cannot (should not) use Passenger on &lt;a href=&quot;http://www.webfaction.com/?affiliate=rzownir&quot; rel=&quot;nofollow&quot;&gt;WebFaction&lt;/a&gt;. Technically you could, but you&#039;ll have to run your own instance of Apache, which negates the memory benefits of Passenger. The only enviable benefit of Passenger from my perspective is its ability to start up/tear down rails instances on demand. Although I&#039;ve tried Passenger on my development machine, there has been no compelling reason for me to make the switch.

After exhaustive research, I chose &lt;a href=&quot;http://www.webfaction.com/?affiliate=rzownir&quot; rel=&quot;nofollow&quot;&gt;WebFaction&lt;/a&gt; for production. The alternative choice was SliceHost VPS. Both companies are exceptional. The deciding factor was that I didn&#039;t want to maintain an entire Linux system. If you are passionate about Passenger, you might want to check out DreamHost. In my experience, the monit/nginx/thin stack is a good one.</description>
		<content:encoded><![CDATA[<p>Ram,</p>
<p>As far as memory is concerned, you have to work within the constraints of rails&#8217; overhead memory usage and the memory required by your particular application. Overhead is the amount of memory required per rails instance running a skeleton rails application. Memory usage permitting, you can certainly run multiple rails apps on <a href="http://www.webfaction.com/?affiliate=rzownir" rel="nofollow">WebFaction</a>. I&#8217;d advise you to take a look at the memory usage on your development machine and choose your plan accordingly. My script sets up two thin instances for the sample app, but for your purposes you may only need one thin instance per app.</p>
<p>Regarding your first enumerated question, it&#8217;s trivial to run multiple applications on &#8220;the same nginx&#8221;. You will have to duplicate the vhost configuration and make some small changes. For starters, you would create a &#8220;new app listening on port&#8221; from the <a href="http://www.webfaction.com/?affiliate=rzownir" rel="nofollow">WebFaction</a> control panel. Take note of the port assigned to you. Duplicate the vhost file provided by the script and change the listening port to the port just assigned to you. Change the application path to the path of the new application in the vhost config file. Change the upstream socket paths to correspond with the new rails application&#8217;s thin sockets. You&#8217;ll also have to duplicate the info in the monitrc file that defines the thin servers for the first app and make sensible changes to reflect your new app. The last thing to do is to reload the nginx configuration and reload the monit configuration. (The quick and easy way is to kill nginx and quit monit, then start monit.)</p>
<p>In response to your second enumerated question, you cannot (should not) use Passenger on <a href="http://www.webfaction.com/?affiliate=rzownir" rel="nofollow">WebFaction</a>. Technically you could, but you&#8217;ll have to run your own instance of Apache, which negates the memory benefits of Passenger. The only enviable benefit of Passenger from my perspective is its ability to start up/tear down rails instances on demand. Although I&#8217;ve tried Passenger on my development machine, there has been no compelling reason for me to make the switch.</p>
<p>After exhaustive research, I chose <a href="http://www.webfaction.com/?affiliate=rzownir" rel="nofollow">WebFaction</a> for production. The alternative choice was SliceHost VPS. Both companies are exceptional. The deciding factor was that I didn&#8217;t want to maintain an entire Linux system. If you are passionate about Passenger, you might want to check out DreamHost. In my experience, the monit/nginx/thin stack is a good one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niki</title>
		<link>http://zownir.net/2008/04/11/ruby-on-rails-stack-on-webfaction/comment-page-1#comment-2</link>
		<dc:creator>Niki</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">urn:uuid:{a.guid}#comment-2</guid>
		<description>I have wanted one of these forever! THANKS for the great work</description>
		<content:encoded><![CDATA[<p>I have wanted one of these forever! THANKS for the great work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramonrails</title>
		<link>http://zownir.net/2008/04/11/ruby-on-rails-stack-on-webfaction/comment-page-1#comment-3</link>
		<dc:creator>ramonrails</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">urn:uuid:{a.guid}#comment-3</guid>
		<description>I am not unix/linux guru. Please excuse dumb question.
Is they a way to minimize the memory usage and get deployment simplified for multiple rails applications on webfaction account?

1. Is there a way to run multiple rails apps on the same ngnix as your script installs?
2. Would passenger+REE+Apache be better solution? How do I do it?

Regards, Ram</description>
		<content:encoded><![CDATA[<p>I am not unix/linux guru. Please excuse dumb question.<br />
Is they a way to minimize the memory usage and get deployment simplified for multiple rails applications on webfaction account?</p>
<p>1. Is there a way to run multiple rails apps on the same ngnix as your script installs?<br />
2. Would passenger+REE+Apache be better solution? How do I do it?</p>
<p>Regards, Ram</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramonrails</title>
		<link>http://zownir.net/2008/04/11/ruby-on-rails-stack-on-webfaction/comment-page-1#comment-4</link>
		<dc:creator>ramonrails</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">urn:uuid:{a.guid}#comment-4</guid>
		<description>Forgot to leave the email. Here it is.

My purpose is to use one webfaction account as QA server for multiple apps under development. That is why I asked the question about configuring multiple rails apps on one ngnix at webfaction.

What would you recommend for a production app? webfaction? which stack? other provider?

Regards, Ram</description>
		<content:encoded><![CDATA[<p>Forgot to leave the email. Here it is.</p>
<p>My purpose is to use one webfaction account as QA server for multiple apps under development. That is why I asked the question about configuring multiple rails apps on one ngnix at webfaction.</p>
<p>What would you recommend for a production app? webfaction? which stack? other provider?</p>
<p>Regards, Ram</p>
]]></content:encoded>
	</item>
</channel>
</rss>
