<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,7 +11,7 @@ require &quot;fileutils&quot;
 
 gem :flog
 
-CURRENT_VERSION = '0.5.3'
+CURRENT_VERSION = '0.5.4'
 $package_version = CURRENT_VERSION
 
 desc &quot;Run all examples with RCov&quot;</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -11,12 +11,10 @@ require 'optparse'
 options = {}
 OptionParser.new do |opts|
   opts.banner =  &quot;Usage: castronaut [Options] {/path/to/config/file}\n&quot;
-  opts.banner += &quot;\t -C: \t\tStart castronaut using the specified config file.\n&quot;
   opts.banner += &quot;\t --config: \tStart castronaut using the specified config file.\n&quot;  
-  opts.banner += &quot;\t -F: \t\tWrite the castronaut default sample config file to the specified location.\n&quot;
   opts.banner += &quot;\t --fresh: \tWrite the castronaut default sample config file to the specified location.\n&quot;
-  opts.banner += &quot;\t -S: \t\tCreate a sample development database with users for testing.\n&quot;
   opts.banner += &quot;\t --sampledb: \tCreate a sample development database with users for testing.\n&quot;  
+  opts.banner += &quot;\t --nginx: \tWrite the sample nginx configuration file to the specified location.\n&quot;
 
   opts.on(&quot;-h&quot;, &quot;--help&quot;) do
     puts opts.banner
@@ -38,6 +36,12 @@ OptionParser.new do |opts|
     Castronaut::Support::Sample.create_sample_database
     exit(1)
   end
+  
+  opts.on(&quot;-N&quot;, &quot;--nginx&quot;) do
+    FileUtils.cp(File.join(File.dirname(__FILE__), '..', 'config', 'nginx_vhost.conf'), &quot;#{ARGV[0]}/castronaut.conf&quot;)
+    puts &quot;Writing nginx vhost configuration file to #{ARGV[0]}/castronaut.conf&quot;
+    exit(1)
+  end
 end.parse!
 
 unless Castronaut.config</diff>
      <filename>bin/castronaut</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ files &lt;&lt; Dir[&quot;lib/**/*&quot;, &quot;app/**/*&quot;, &quot;spec/**/*&quot;, &quot;config/**/*&quot;,  &quot;vendor/**/*&quot;]
 
 Gem::Specification.new do |s|
   s.name = 'castronaut'
-  s.version = &quot;0.5.3&quot;
+  s.version = &quot;0.5.4&quot;
   s.summary = 'CAS Server'
   s.description = &quot;CAS Server&quot;
   s.files = files.flatten</diff>
      <filename>castronaut.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -1,16 +1,10 @@
-# If you are using thin with sockets
 upstream castronaut { 
-	 server unix:/tmp/castronaut.0.sock;
+	server 127.0.0.1:4567; 
 }
 
-# Uncomment if you are not using sockets
-# upstream castronaut { 
-# 	 server 127.0.0.1:4567; 
-# }
-
 server { 
        listen 80; 
-       server_name myapp.com; 
+       # server_name cas.example.com; 
 
        location / { 
        		proxy_pass http://castronaut; 
@@ -18,7 +12,6 @@ server {
 		proxy_set_header Host $host; 
 	} 
 
-	root /path/to/castronaut/; 
 	access_log /var/log/nginx/castronaut/access.log; 
 	error_log /var/log/nginx/castronaut/error.log; 
 }
\ No newline at end of file</diff>
      <filename>config/nginx_vhost.conf</filename>
    </modified>
    <modified>
      <diff>@@ -35,5 +35,10 @@ of these instructions should not change if you are using the desktop version.
    8.3) castronaut -C castronaut.yml
    8.4) Go to http://localhost:4567
    8.5) Login with username admin and password admin
-
+9) Install Nginx
+   9.1) sudo apt-get install nginx
+10) Setup Nginx proxy
+    10.1) cd /etc/nginx/sites-available
+    10.2) sudo castronaut --nginx .
+    10.3) sudo ln -s /etc/nginx/sites-available/castronaut.conf /etc/nginx/sites-enabled/castronaut.conf
 </diff>
      <filename>doc/deployment/ubuntu-with-nginx.textile</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 module Castronaut
   module VERSION
-    STRING = '0.5.3'
+    STRING = '0.5.4'
   end
 end</diff>
      <filename>lib/version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e65e4fe11de10d516395d4e406640eb8ba47ecb2</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Bedra</name>
    <email>aaron@thinkrelevance.com</email>
  </author>
  <url>http://github.com/relevance/castronaut/commit/ede7613ed27f38670ad0ea0f8ee86e2abb643363</url>
  <id>ede7613ed27f38670ad0ea0f8ee86e2abb643363</id>
  <committed-date>2009-01-02T18:24:25-08:00</committed-date>
  <authored-date>2009-01-02T18:24:25-08:00</authored-date>
  <message>adding support for castronaut binary to write sample vhost configuration file</message>
  <tree>116544c6a9131ebcd5055dca1011b0f5e01f41e6</tree>
  <committer>
    <name>Aaron Bedra</name>
    <email>aaron@thinkrelevance.com</email>
  </committer>
</commit>
