<?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: Documenting your API with IODocs on Heroku</title>
	<atom:link href="http://www.princesspolymath.com/princess_polymath/?feed=rss2&#038;p=489" rel="self" type="application/rss+xml" />
	<link>http://www.princesspolymath.com/princess_polymath/?p=489</link>
	<description></description>
	<lastBuildDate>Fri, 08 Mar 2013 01:21:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Installing, Configuring, and Deploying I/O Docs</title>
		<link>http://www.princesspolymath.com/princess_polymath/?p=489&#038;cpage=1#comment-2781</link>
		<dc:creator>Installing, Configuring, and Deploying I/O Docs</dc:creator>
		<pubDate>Fri, 13 Jan 2012 16:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.princesspolymath.com/princess_polymath/?p=489#comment-2781</guid>
		<description><![CDATA[[...] the most part I followed a post about deploying I/O Docs to Heroku by Princess Ploymath. Unfortunately as noted in my comment on her post, it didn&#8217;t get me all the way. Although it [...]]]></description>
		<content:encoded><![CDATA[<p>[...] the most part I followed a post about deploying I/O Docs to Heroku by Princess Ploymath. Unfortunately as noted in my comment on her post, it didn&#8217;t get me all the way. Although it [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason McCreary</title>
		<link>http://www.princesspolymath.com/princess_polymath/?p=489&#038;cpage=1#comment-2524</link>
		<dc:creator>Jason McCreary</dc:creator>
		<pubDate>Thu, 08 Dec 2011 03:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.princesspolymath.com/princess_polymath/?p=489#comment-2524</guid>
		<description><![CDATA[Thank you for your post. I had been wanting to try IODocs for some time now. However, I was not familiar with node.js or Heroku. This got me started.

Unfortunately the app crashed at first on Heroku. I made a few modifications.

The app port needed to be modified:

    // CORE UPDATE: switch to production port
    var port = process.env.PORT &#124;&#124; config.port;
    app.listen(port, config.address);

The redis port is used for more than the lines you noted. Instead the following code overwrites the core `config` object making it more flexible.

    // CORE UPDATE:
    if (process.env.REDISTOGO_URL) {
      // use production (Heroku) redis configuration
      // overwrite `config` to keep it simple
      var rtg = require(&#039;url&#039;).parse(process.env.REDISTOGO_URL);
      config.redis.port = rtg.port;
      config.redis.host = rtg.hostname;
      config.redis.password = rtg.auth.split(&quot;:&quot;)[1];
    }

I also didn&#039;t need to remove the address line from config.json.

Hope this helps a future reader save some time.]]></description>
		<content:encoded><![CDATA[<p>Thank you for your post. I had been wanting to try IODocs for some time now. However, I was not familiar with node.js or Heroku. This got me started.</p>
<p>Unfortunately the app crashed at first on Heroku. I made a few modifications.</p>
<p>The app port needed to be modified:</p>
<p>    // CORE UPDATE: switch to production port<br />
    var port = process.env.PORT || config.port;<br />
    app.listen(port, config.address);</p>
<p>The redis port is used for more than the lines you noted. Instead the following code overwrites the core `config` object making it more flexible.</p>
<p>    // CORE UPDATE:<br />
    if (process.env.REDISTOGO_URL) {<br />
      // use production (Heroku) redis configuration<br />
      // overwrite `config` to keep it simple<br />
      var rtg = require(&#8216;url&#8217;).parse(process.env.REDISTOGO_URL);<br />
      config.redis.port = rtg.port;<br />
      config.redis.host = rtg.hostname;<br />
      config.redis.password = rtg.auth.split(&#8220;:&#8221;)[1];<br />
    }</p>
<p>I also didn&#8217;t need to remove the address line from config.json.</p>
<p>Hope this helps a future reader save some time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
