<?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>it808.com &#187; Uncategorized</title>
	<atom:link href="http://it808.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://it808.com</link>
	<description></description>
	<lastBuildDate>Sun, 06 Dec 2009 08:48:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Sinatra on Site5 Passenger</title>
		<link>http://it808.com/2009/12/installing-sinatra-on-site5-passenger/</link>
		<comments>http://it808.com/2009/12/installing-sinatra-on-site5-passenger/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 08:48:22 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://it808.com/?p=24</guid>
		<description><![CDATA[This is a just a quick note about how to deploy Sinatra on Site5.com Passenger
Gems
My gems are installed in my user folder:
INSTALLATION DIRECTORY:

~/.gem/ruby/1.8

GEM PATHS:
- /home/it808com/.gem/ruby/1.8
- /usr/lib/ruby/gems/1.8
GEM PATHS:

~/.gem/ruby/1.8
/usr/lib/ruby/gems/1.8

In my public_html/sinatra_app/.htaccess
# Phusion Passenger Start
PassengerEnabled on
PassengerAppRoot ~/public_html/sinatra_app
RackBaseURI /sinatra_app
# Phusion Passenger End
My sinatra_app folder consists of
app.rb
config.ru
public/
tmp/
Getting my gems into the sinatra environment requires 2 lines in the config.ru file
ENV['GEM_HOME'] [...]]]></description>
			<content:encoded><![CDATA[<p>This is a just a quick note about how to deploy Sinatra on Site5.com Passenger</p>
<h3>Gems</h3>
<p>My gems are installed in my user folder:</p>
<p>INSTALLATION DIRECTORY:</p>
<ul>
<li>~/.gem/ruby/1.8</li>
</ul>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">GEM PATHS:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">- /home/it808com/.gem/ruby/1.8</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">- /usr/lib/ruby/gems/1.8</div>
<p>GEM PATHS:</p>
<ul>
<li>~/.gem/ruby/1.8</li>
<li>/usr/lib/ruby/gems/1.8</li>
</ul>
<p>In my public_html/sinatra_app/.htaccess</p>
<pre># Phusion Passenger Start
PassengerEnabled on
PassengerAppRoot ~/public_html/sinatra_app
RackBaseURI /sinatra_app
# Phusion Passenger End</pre>
<p>My sinatra_app folder consists of</p>
<pre>app.rb
config.ru
public/
tmp/</pre>
<p>Getting my gems into the sinatra environment requires 2 lines in the config.ru file</p>
<pre>ENV['GEM_HOME'] = '~/.gem/ruby/1.8'
ENV['GEM_PATH'] = '~/.gem/ruby/1.8:/usr/lib/ruby/gems/1.8'

require 'rubygems'
require 'sinatra'
require 'app'
run Sinatra::Application</pre>
<p>My app.rb looks like</p>
<pre>
get '/' do
  "Hello World #{Time.now.utc} #{params.inspect}"

end
</pre>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2009/12/installing-sinatra-on-site5-passenger/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Site5 Wordpress Phusion Passenger and Rails</title>
		<link>http://it808.com/2009/07/site5-wordpress-phusion-passenger-and-rails/</link>
		<comments>http://it808.com/2009/07/site5-wordpress-phusion-passenger-and-rails/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 08:36:17 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[phusion]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://it808.com/?p=18</guid>
		<description><![CDATA[I recently created a little toy rails app to see how easy it was to bring up rails with Site5&#8217;s Phusion Passenger. Following the instructions at first everything went as planned and my rails app was working flawlessly.
A few days later I was writing a 2nd rails app and noticed a Wordpress 404 error whenever [...]]]></description>
			<content:encoded><![CDATA[<p>I recently created a little <a href="http://it808.com/wordlist/">toy rails app</a> to see how easy it was to bring up rails with <a href="http://www.site5.com">Site5</a>&#8217;s <a href="http://www.modrails.com/">Phusion Passenger</a>. Following the <a href="http://www.site5.com/blog/programming/ruby-rails/how-to-deploy-phusion-passenger-to-a-subdirectory-routing-errors-and-restarting/20090414/">instructions</a> at first everything went as planned and my rails app was working flawlessly.</p>
<p>A few days later I was writing a 2nd rails app and noticed a Wordpress 404 error whenever I asked for a route other than the root URL. I tried my original rails app and it was broken also. I hadn&#8217;t touched a thing.</p>
<p>After a chat session with Site5 support (awesome response), it wasn&#8217;t resolved. Their level 1 support said it was my .htaccess file, and provided no other help (poor response).</p>
<p>After opening a ticket myself and providing them my .htaccess, environment.rb and symlink they again said it was my .htaccess file, but this time it was my public_html .htaccess file that was wrong. But still no other url or hint.</p>
<p>Turns out my public_html .htaccess file has some wordpress rewrite rules in it. I needed to exclude the rails subdirectories so that wordpress wouldn&#8217;t see them.</p>
<p>Here&#8217;s what I added to my public_html .htaccess<br />
<code>RewriteCond %{REQUEST_URI} !^/rails_app_name/</code></p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2009/07/site5-wordpress-phusion-passenger-and-rails/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Setting up github from Site5</title>
		<link>http://it808.com/2009/07/setting-up-github-from-site5/</link>
		<comments>http://it808.com/2009/07/setting-up-github-from-site5/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 06:44:00 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://it808.com/?p=14</guid>
		<description><![CDATA[After setting up my account at github I created my first repository and followed their directions for configuring my local copy.
Things were going well but I got stuck on the public key portion. The rest of this is what I did to complete the configuration:
Followed the steps in the github for adding public keys
My first [...]]]></description>
			<content:encoded><![CDATA[<p>After setting up my account at <a href="www.github.com">github </a>I created my first repository and followed their <a href="http://github.com/sfigart/readathon/tree/master">directions</a> for configuring my local copy.</p>
<p>Things were going well but I got stuck on the public key portion. The rest of this is what I did to complete the configuration:<br />
Followed the steps in the github for adding public keys</p>
<p>My first problem was this error when I tried to git push<br />
<code><br />
Permission denied (publickey).<br />
</code></p>
<p>I had to follow these steps to generate my public key correctly<br />
<code><br />
ssh-agent /bin/bash<br />
ssh-add <name of my key> (without the .pub)<br />
</code></p>
<p>Now I could push to github.</p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2009/07/setting-up-github-from-site5/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Wpremix3 and Site 5 permissions</title>
		<link>http://it808.com/2009/07/wpremix3-and-site-5-permissions/</link>
		<comments>http://it808.com/2009/07/wpremix3-and-site-5-permissions/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 07:45:00 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://it808.com/?p=10</guid>
		<description><![CDATA[I just spent several hours looking at a error code 500 for a wpremix3 style.php page in Firebug. When I tried the url manually I got the same error with a generic Apache error page.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Resolution:
This post in the Site [...]]]></description>
			<content:encoded><![CDATA[<p>I just spent several hours looking at a error code 500 for a <a href="http://wpremix.com/">wpremix3</a> style.php page in Firebug. When I tried the url manually I got the same error with a generic Apache error page.</p>
<blockquote>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p></blockquote>
<p>Resolution:</p>
<p>This <a href="http://forums.site5.com/showthread.php?t=9115">post</a> in the Site 5 forums lists the correct folder and file permissions.</p>
<p>I set the permissions for wpremix folder to 755 and files to 644. Problem solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2009/07/wpremix3-and-site-5-permissions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
