<?xml version="1.0" encoding="UTF-8"?>
<blog>
  <comment-count type="integer">0</comment-count>
  <created-at type="datetime">2009-06-03T00:21:56-04:00</created-at>
  <file></file>
  <id type="integer">29</id>
  <published type="boolean">true</published>
  <story>&lt;p&gt;The solution I am using for deploying a Sinatra app that runs on Thin and Rack on Webfaction, without Capistrano or Git, just using Rsync and Rake. &lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;
		&lt;h2&gt;Create the application:&lt;/h2&gt;
		&lt;code&gt;&lt;pre&gt;myapp
config
   config.ru
   config.yml
   db
       migrate
           rake migration files
       myapp.sqlite3.db
myapp.rb
lib
models
public
   stylesheets
   images
   javascripts
Rakefile
tmp/
views
   layout.erb
   myview.erb&lt;/pre&lt;/code&gt;&lt;/li&gt;       

	&lt;li&gt;In the Wefaction Control Panel, create a custom application listening on port, get the port number, needed for config files. Create a domain. Create a website that links a domain to the application. Do a &lt;a href='https://help.webfaction.com/89'&gt;custom Ruby install&lt;/a&gt;. Install any necessary gems (eg Thin, Rack, ActiveRecord, whatever).&lt;/li&gt;
	
	&lt;li&gt;
		Set up the config files and a Rakefile:
		&lt;h3&gt;config.ru&lt;/h3&gt;
		&lt;script src=&quot;http://gist.github.com/122785.js&quot;&gt;&lt;/script&gt;
		&lt;h3&gt;config.yml&lt;/h3&gt;
		&lt;script src=&quot;http://gist.github.com/122784.js&quot;&gt;&lt;/script&gt;
		&lt;h3&gt;Rakefile&lt;/h3&gt;
		&lt;script src=&quot;http://gist.github.com/122786.js&quot;&gt;&lt;/script&gt;
		
	&lt;li&gt;To deploy the site, rake deploy. &lt;/li&gt;
&lt;/ol&gt;
</story>
  <title>My Recipe For Sinatra/Thin/Rack/Webfaction</title>
  <updated-at type="datetime">2009-06-03T00:49:02-04:00</updated-at>
</blog>
