<?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>Sean Behan&#039;s Web Development Portfolio and Blog &#187; Sinatra</title>
	<atom:link href="http://seanbehan.com/category/sinatra/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanbehan.com</link>
	<description>Web Development, Wordpress, Moodle, Ruby on Rails and Design in Burlington, Vermont</description>
	<lastBuildDate>Fri, 30 Jul 2010 17:17:12 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Manage Sinatra Server in Development Mode with Shotgun</title>
		<link>http://seanbehan.com/sinatra/manage-sinatra-server-in-development-mode-with-shotgun/</link>
		<comments>http://seanbehan.com/sinatra/manage-sinatra-server-in-development-mode-with-shotgun/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 02:03:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sinatra]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[reload]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[shotgun]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=512</guid>
		<description><![CDATA[Sinatra won&#8217;t reload your files. So if you&#8217;re developing your app and want to see any changes made in the browser, install the shotgun gem. 

gem install shotgun

You can then use shotgun to run your server

shotgun your_sinatra_ditty.rb

Presto, your ditty will never be out of key  


Related posts:Output Logger and SQL to the Rails Console [...]


Related posts:<ol><li><a href='http://seanbehan.com/ruby-on-rails/output-logger-and-sql-to-the-rails-console-in-development-mode/' rel='bookmark' title='Permanent Link: Output Logger and SQL to the Rails Console in Development Mode'>Output Logger and SQL to the Rails Console in Development Mode</a></li>
<li><a href='http://seanbehan.com/ruby-on-rails/manage-fixtures-with-yaml-db-plugin-for-rails/' rel='bookmark' title='Permanent Link: Manage Fixtures with Yaml DB Plugin for Rails'>Manage Fixtures with Yaml DB Plugin for Rails</a></li>
<li><a href='http://seanbehan.com/databases/installing-redis-server-and-client-on-mac-os-x-and-ubuntu/' rel='bookmark' title='Permanent Link: Installing Redis Server and Client on Mac OS X and Ubuntu'>Installing Redis Server and Client on Mac OS X and Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Sinatra won&#8217;t reload your files. So if you&#8217;re developing your app and want to see any changes made in the browser, install the shotgun gem. </p>
<pre>
gem install shotgun
</pre>
<p>You can then use shotgun to run your server</p>
<pre>
shotgun your_sinatra_ditty.rb
</pre>
<p>Presto, your ditty will never be out of key <img src='http://seanbehan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://seanbehan.com/ruby-on-rails/output-logger-and-sql-to-the-rails-console-in-development-mode/' rel='bookmark' title='Permanent Link: Output Logger and SQL to the Rails Console in Development Mode'>Output Logger and SQL to the Rails Console in Development Mode</a></li>
<li><a href='http://seanbehan.com/ruby-on-rails/manage-fixtures-with-yaml-db-plugin-for-rails/' rel='bookmark' title='Permanent Link: Manage Fixtures with Yaml DB Plugin for Rails'>Manage Fixtures with Yaml DB Plugin for Rails</a></li>
<li><a href='http://seanbehan.com/databases/installing-redis-server-and-client-on-mac-os-x-and-ubuntu/' rel='bookmark' title='Permanent Link: Installing Redis Server and Client on Mac OS X and Ubuntu'>Installing Redis Server and Client on Mac OS X and Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/sinatra/manage-sinatra-server-in-development-mode-with-shotgun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deploy Sintra App on Ubuntu Using Apache2 and Phusion Passenger Module</title>
		<link>http://seanbehan.com/sinatra/deploy-sintra-app-on-ubuntu-using-apache2-and-phusion-passenger-module/</link>
		<comments>http://seanbehan.com/sinatra/deploy-sintra-app-on-ubuntu-using-apache2-and-phusion-passenger-module/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 20:23:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sinatra]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[phusion]]></category>
		<category><![CDATA[rack]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=504</guid>
		<description><![CDATA[Check it out http://sinatra.seanbehan.com/
This assumes Apache2 and the Phusion Passenger module have already been installed. If not you can get up to speed w/ this resource http://seanbehan.com/ruby-on-rails/new-ubuntu-slice-apache-mysql-php-ruby-on-rails-git-and/
First you need Sinatra, so install the gem 

gem install sinatra

We need a home for Frank, so create the minimum number of directories in our web directory. The public [...]


Related posts:<ol><li><a href='http://seanbehan.com/ruby-on-rails/rails-ssl-ubuntu-apache2-w-phussion-on-ubunt/' rel='bookmark' title='Permanent Link: Rails, SSL, Ubuntu, Apache2 with Phusion on Ubuntu'>Rails, SSL, Ubuntu, Apache2 with Phusion on Ubuntu</a></li>
<li><a href='http://seanbehan.com/programming/upgrading-to-latest-phusion-passenger-212/' rel='bookmark' title='Permanent Link: upgrading to latest phusion passenger 2.1.2'>upgrading to latest phusion passenger 2.1.2</a></li>
<li><a href='http://seanbehan.com/ruby-on-rails/new-ubuntu-slice-apache-mysql-php-ruby-on-rails-git-and/' rel='bookmark' title='Permanent Link: Setting up a new ubuntu server with apache2, php, ruby on rails, rubygems, mysql, and git'>Setting up a new ubuntu server with apache2, php, ruby on rails, rubygems, mysql, and git</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Check it out http://sinatra.seanbehan.com/<br />
This assumes Apache2 and the Phusion Passenger module have already been installed. If not you can get up to speed w/ this resource http://seanbehan.com/ruby-on-rails/new-ubuntu-slice-apache-mysql-php-ruby-on-rails-git-and/</p>
<p>First you need Sinatra, so install the gem </p>
<pre>
gem install sinatra
</pre>
<p>We need a home for Frank, so create the minimum number of directories in our web directory. The public directory is where we&#8217;ll server images, stylesheets, javascript etc. The tmp directory will be where we control Passenger. </p>
<pre>
cd /var/www/sinatra
mkdir myapp
mkdir myapp/tmp
mkdir myapp/public

cd myapp
vim index.rb
#in index.rb
get '/' do
  "Fly me to the moon..."
end
</pre>
<p>Next we need a configuration file for Rack, important the file extension is &#8220;.ru&#8221; not .rb! </p>
<pre>
vim config.ru
require 'rubygems'
require 'sinatra'

Sinatra::Application.default_options.merge!(
  :run => false,
  :env => ENV['RACK_ENV']
)

require 'index'
run Sinatra.application
</pre>
<p>Set up the virtual host</p>
<pre>
<VirtualHost *>
  ServerName www.myapp.com
  DocumentRoot /var/www/sinatra/public
</VirtualHost>
</pre>
<p>Now you can restart the app if you make adjustments! </p>
<pre>
touch tmp/restart.txt
</pre>
<p>Keep on singing <img src='http://seanbehan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>Inspired by http://blog.zerosum.org/2008/7/4/passenger-3-sinatra</p>


<p>Related posts:<ol><li><a href='http://seanbehan.com/ruby-on-rails/rails-ssl-ubuntu-apache2-w-phussion-on-ubunt/' rel='bookmark' title='Permanent Link: Rails, SSL, Ubuntu, Apache2 with Phusion on Ubuntu'>Rails, SSL, Ubuntu, Apache2 with Phusion on Ubuntu</a></li>
<li><a href='http://seanbehan.com/programming/upgrading-to-latest-phusion-passenger-212/' rel='bookmark' title='Permanent Link: upgrading to latest phusion passenger 2.1.2'>upgrading to latest phusion passenger 2.1.2</a></li>
<li><a href='http://seanbehan.com/ruby-on-rails/new-ubuntu-slice-apache-mysql-php-ruby-on-rails-git-and/' rel='bookmark' title='Permanent Link: Setting up a new ubuntu server with apache2, php, ruby on rails, rubygems, mysql, and git'>Setting up a new ubuntu server with apache2, php, ruby on rails, rubygems, mysql, and git</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/sinatra/deploy-sintra-app-on-ubuntu-using-apache2-and-phusion-passenger-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
