Permalink
Browse files

no longer using capistrano and mongrel_cluster

  • Loading branch information...
1 parent 263d7b3 commit 683c962411e4266b0a3284d29e880bece62e2a04 @haruska committed Jun 28, 2008
Showing with 0 additions and 43 deletions.
  1. +0 −35 config/deploy.rb
  2. +0 −8 config/mongrel_cluster.yml
View
@@ -1,35 +0,0 @@
-require 'mongrel_cluster/recipes'
-
-set :application, "fb2twit"
-set :deploy_to, "/mnt/#{application}"
-
-set :mongrel_conf, "#{current_path}/config/mongrel_cluster.yml"
-
-set :user, 'root'
-set :password, nil
-
-role :app, "haruska.dyndns.org"
-role :web, "haruska.dyndns.org"
-role :db, "haruska.dyndns.org", :primary => true
-
-after "deploy:stop", "stop_daemons"
-before "deploy:start", "start_daemons"
-before "deploy:restart", "restart_daemons"
-
-
-desc "Starts background daemons"
-task :start_daemons, :roles => :app do
- invoke_command "cd #{current_path} && RAILS_ENV=production script/daemons start"
-end
-
-desc "Stops background daemons"
-task :stop_daemons, :roles => :app do
- invoke_command "cd #{current_path} && RAILS_ENV=production script/daemons stop"
- sleep 2 #wait for process to finish
-end
-
-desc "Restarts background daemons"
-task :restart_daemons, :roles => :app do
- stop_daemons
- start_daemons
-end
@@ -1,8 +0,0 @@
----
-cwd: /mnt/fb2twit/current
-log_file: log/mongrel.log
-port: "10000"
-environment: production
-address: 127.0.0.1
-pid_file: tmp/pids/mongrel.pid
-servers: 3

0 comments on commit 683c962

Please sign in to comment.