<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1,4 @@
 *.log
-blog.db
+tmp/*
+config/app_config.rb
+config/config.yml</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,8 @@
-port = 3030
-
+ports = [4567,4568]
 desc &quot;Start the app server&quot;
 task :start =&gt; :stop do
 	puts &quot;Starting the blog&quot;
-	system &quot;ruby main.rb -p #{port} &gt; access.log 2&gt;&amp;1 &amp;&quot;
+	system &quot;thin -s 2 -C config/config.yml -R config/rackup.ru start&quot;
 end
 
 # code lifted from rush
@@ -28,11 +27,13 @@ rescue Errno::ESRCH
 end
 
 desc &quot;Stop the app server&quot;
-task :stop do
-	m = `netstat -lptn | grep 0.0.0.0:#{port}`.match(/LISTEN\s*(\d+)/)
-	if m
-		pid = m[1].to_i
-		puts &quot;Killing old server #{pid}&quot;
-		kill_process(pid)
-	end
+task :stop do  
+  ports.each do |port|
+    m = `netstat -lptn | grep 127.0.0.1:#{port}`.match(/LISTEN\s*(\d+)/)
+    if m
+      pid = m[1].to_i
+      puts &quot;Killing old server #{pid}&quot;
+      kill_process(pid)
+    end
+  end
 end
\ No newline at end of file</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -7,4 +7,4 @@ set :env,      :production
 
 disable :run, :reload
 
-run Sinatra.application
+run Sinatra.application
\ No newline at end of file</diff>
      <filename>config/rackup.ru</filename>
    </modified>
    <modified>
      <diff>@@ -1,20 +1,6 @@
 require 'rubygems'
 require 'sinatra'
-
-configure do
-	require 'ostruct'
-	Blog = OpenStruct.new(
-		:title =&gt; 'scanty on the couch',
-		:author =&gt; 'Joel Tulloch',
-		:url_base =&gt; 'http://localhost:4567/',
-		:database_name =&gt; 'change_this',
-		:url_base_database =&gt; nil,
-		:admin_password =&gt; 'changethis',
-		:admin_cookie_key =&gt; 'admin_cookie_key',
-		:admin_cookie_value =&gt; '54l976913ace58',
-		:disqus_shortname =&gt; nil
-	)
-end
+require 'config/app_config.rb'
 
 error do
 	e = request.env['sinatra.error']
@@ -122,7 +108,6 @@ post '/past/:year/:month/:day/:slug/' do
 	post.title = params[:title]
 	post.tags = parse_tags(params[:tags])
 	post.body = params[:body]
-	post.save
-	redirect post.url
+	redirect post.url if post.save
 end
 </diff>
      <filename>main.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ecca5b9aef5d6fb4c65385aabee9d6ed6adcdd45</id>
    </parent>
  </parents>
  <author>
    <name>joel</name>
    <email>joel@jtulloch.com</email>
  </author>
  <url>http://github.com/jtulloch/scanty/commit/2f529db3ff3836d79292b9c6880b9bddc4562ffd</url>
  <id>2f529db3ff3836d79292b9c6880b9bddc4562ffd</id>
  <committed-date>2008-12-09T17:53:13-08:00</committed-date>
  <authored-date>2008-12-09T17:53:13-08:00</authored-date>
  <message>updated rake for Thin and pulled config struct to seperate file</message>
  <tree>6590b74d38b548d688fe28e097d2939080dd57ec</tree>
  <committer>
    <name>joel</name>
    <email>joel@jtulloch.com</email>
  </committer>
</commit>
