<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>config/deploy/production.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,60 +1,36 @@
-require 'palmtree/recipes/mongrel_cluster'
+set :application, 'snotes'
 
-set :application, &quot;snotes&quot;
+set :stages, %w(production)
+set :default_stage, 'production'
 
-set :deploy_via, :copy
-#set :copy_cache, true
-set :repository, &quot;file://.&quot;
-
-
-set :deploy_to, &quot;/home/mongrel/railsapps/#{application}&quot;
+require 'capistrano/ext/multistage'
 
+# scm config
 set :scm, :git
+set :repository, 'git://github.com/alto/snotes.git'
+set :branch, 'master'
+set :deploy_via, :rsync_with_remote_cache
 
-set :user, 'mongrel'
-
-role :app, &quot;rubymatters.de&quot;
-role :web, &quot;rubymatters.de&quot;
-role :db,  &quot;rubymatters.de&quot;, :primary =&gt; true
-
+# system config
 set :use_sudo, false
 
-set :mongrel_conf, &quot;#{shared_path}/config/mongrel_cluster.yml&quot;
-set :mongrel_user, 'mongrel'
-set :mongrel_group, 'mongrel'
-
-set :mongrel_port, '9000'
-set :mongrel_servers, '2'
-set :mongrel_address, '127.0.0.1'
-set :mongrel_environment, 'production'
-
-set :mongrel_pid, &quot;#{shared_path}/log/mongrel_cluster.#{application}.pid&quot;
-
-
-after 'deploy:setup', :setup_mongrel_conf
 after 'deploy:update_code', :set_symlinks
+after 'deploy', 'deploy:cleanup'
 
-desc &quot;setting up mongrel&quot;
-task :setup_mongrel_conf do
-  mongrel_configuration = &lt;&lt;EOF
----
-port: 11000
-pid_file: #{mongrel_pid}
-servers: #{mongrel_servers}
-address: #{mongrel_address}
-cwd: #{deploy_to}/current
-environment: #{mongrel_environment}
-EOF
-
-  run &quot;mkdir -p #{shared_path}/config&quot;
-  put mongrel_configuration, mongrel_conf
-
+task :set_symlinks do
+  run &quot;ln -f -s #{shared_path}/config/database.yml #{release_path}/config/database.yml&quot;
+  run &quot;ln -f -s #{shared_path}/config/twitter.yml #{release_path}/config/twitter.yml&quot;
 end
 
-
-
-desc &quot;setting additional symlinks&quot;
-task :set_symlinks do
-  run &quot;cp #{shared_path}/config/database.yml #{release_path}/config/database.yml&quot;
-  run &quot;cp #{shared_path}/config/twitter.yml #{release_path}/config/twitter.yml&quot;
-end
\ No newline at end of file
+# Passenger specific restart
+namespace :deploy do
+  desc 'Restarting mod_rails with restart.txt'
+  task :restart, :roles =&gt; :app, :except =&gt; { :no_release =&gt; true } do
+    run &quot;touch #{current_path}/tmp/restart.txt&quot;
+  end
+
+  [:start, :stop].each do |t|
+    desc &quot;#{t} task is a no-op with mod_rails&quot;
+    task t, :roles =&gt; :app do ; end
+  end
+end</diff>
      <filename>config/deploy.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>abc056dc6a639d5bfa9bf893373a4272ebb2c066</id>
    </parent>
  </parents>
  <author>
    <name>Sven Klever</name>
    <email>sven.klever@mindmatters.de</email>
  </author>
  <url>http://github.com/alto/snotes/commit/c744a26edb6d78a1534ba15bf08c8450ad7abee6</url>
  <id>c744a26edb6d78a1534ba15bf08c8450ad7abee6</id>
  <committed-date>2009-01-13T04:09:57-08:00</committed-date>
  <authored-date>2009-01-13T04:09:57-08:00</authored-date>
  <message>updated capistrano configuration for new staging server</message>
  <tree>17245f55694eb2e2eb3348e2bb3a7a64a6aa9542</tree>
  <committer>
    <name>Sven Klever</name>
    <email>sven.klever@mindmatters.de</email>
  </committer>
</commit>
