<?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; rails</title>
	<atom:link href="http://it808.com/category/rails/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>Starting Rails</title>
		<link>http://it808.com/2007/10/starting-rails/</link>
		<comments>http://it808.com/2007/10/starting-rails/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 09:28:38 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[site5]]></category>

		<guid isPermaLink="false">http://it808.com/?p=5</guid>
		<description><![CDATA[After yesterday&#8217;s post I realized that I only proved that the subdomain worked. I didn&#8217;t actually get rails running. So today I&#8217;m continuing.

Renamed public/index.html
Edit config/routes.rb to define a default route, I uncommented the welcome controller entry
Generated the welcome controller (ruby ./script/generate controller Welcome index)
Added this to the index method

render :text =&#62; &#8216;Hello World&#8217;


Opened my browser [...]]]></description>
			<content:encoded><![CDATA[<p>After yesterday&#8217;s <a href="http://it808.com/?p=4" target="_blank">post</a> I realized that I only proved that the subdomain worked. I didn&#8217;t actually get <a href="http://rubyonrails.org" target="_blank">rails</a> running. So today I&#8217;m continuing.</p>
<ol>
<li>Renamed public/index.html</li>
<li>Edit config/routes.rb to define a default route, I uncommented the welcome controller entry</li>
<li>Generated the welcome controller (ruby ./script/generate controller Welcome index)</li>
<li>Added this to the index method
<ol>
<li>render :text =&gt; &#8216;Hello World&#8217;</li>
</ol>
</li>
<li>Opened my browser and got this great error message:
<ol>
<li>Rails application failed to start properly&#8221;</li>
</ol>
</li>
</ol>
<p>Now I thought, okay I didn&#8217;t create the DB yet. I also checked the logs and they were all 0.</p>
<p>I ended up using <a href="http://www.site5.com/in.php?id=43873" target="_blank">Site5</a>&#8217;s SiteAdmin to create the DB. I discovered that my account doesn&#8217;t have create database rights through PhpMyAdmin or MySql command-line. Interesting, but no big deal (right now).</p>
<p>I tried to access the site again and got the same error. I thought about killing the cgi/fcgi processes, but I didn&#8217;t  think I had started them yet. So I put the error into google and found this page:  <a href="http://6brand.com/application-error-rails-app-failed-to-start-properly" target="_blank">http://6brand.com/application-error-rails-app-failed-to-start-properly</a></p>
<p>I fired up my ssh connection and performed these commands:</p>
<ul>
<li>cd ~/myrailsapp</li>
<li>chmod 755 public</li>
<li>chmod 755 public/dispatch.fcgi</li>
<li>chmod -R 775 log</li>
<li>chmod -R 775 tmp</li>
</ul>
<p>I tried the site again and viola, rails is up with the render :text message.</p>
<p>Next, I try some real functionality. Or maybe I&#8217;ll try a <a href="http://www.capify.org/getting-started/rails" target="_blank">capistrano</a> deploy to get that all worked out first. And I guess <a href="http://subversion.tigris.org/" target="_blank">subversion</a> too.</p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2007/10/starting-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Site5 Rails Symlink to Subdomain</title>
		<link>http://it808.com/2007/10/simple-site5-rails-symlink-to-subdomain/</link>
		<comments>http://it808.com/2007/10/simple-site5-rails-symlink-to-subdomain/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 10:08:14 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[site5]]></category>

		<guid isPermaLink="false">http://it808.com/?p=4</guid>
		<description><![CDATA[I have Wordpress as my domain root and when I tried to nest a rails app as a subfolder things didn&#8217;t work out. Instead I created a subdomain (i.e. test.mydomain.com), then I symlinked the rails_apps/public to the subdomain.
At site5 this boils down to the following steps:

Sign in to your SiteAdmin url
 Click Manage My Domains, Subdomains
Add [...]]]></description>
			<content:encoded><![CDATA[<p>I have Wordpress as my domain root and when I tried to nest a rails app as a subfolder things didn&#8217;t work out. Instead I created a subdomain (i.e. test.mydomain.com), then I symlinked the rails_apps/public to the subdomain.</p>
<p>At <a href="http://www.site5.com/in.php?id=43873" target="_blank">site5 </a>this boils down to the following steps:</p>
<ol>
<li>Sign in to your SiteAdmin url</li>
<li> Click Manage My Domains, Subdomains</li>
<li>Add the subdomain</li>
<li>ssh to your domain</li>
<li>cd ~</li>
<li>Create your rails app &gt; rails myapp</li>
<li>Delete the subdomain directory created by SiteAdmin
<ol>
<li>cd public_html</li>
<li>rm -r subdomain</li>
</ol>
</li>
<li>Create the symlink from your rail app/public to the subdomain
<ol>
<li>cd ~</li>
<li>ln -s ~/myapp/public/ ~/public_html/subdomain</li>
</ol>
</li>
<li>Open your browser to http://subdomain.mydomain.com
<ol>
<li>You should see the default index.html file for <a href="http://rubyonrails.org" target="_blank">Rails</a></li>
</ol>
</li>
</ol>
<p>References:</p>
<p><a href="http://www.hostingrails.com/forums/deployment_troubleshooting_thread/145" target="_blank">http://www.hostingrails.com/forums/deployment_troubleshooting_thread/145</a></p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2007/10/simple-site5-rails-symlink-to-subdomain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
