Permalink
Browse files

Completed Cap File

  • Loading branch information...
1 parent ed6910c commit 3f04e6d36076f5f92544bd891e9af25dd227945d Adam Hawkins committed Jan 24, 2010
Showing with 10 additions and 3 deletions.
  1. +10 −3 config/deploy.rb
View
@@ -14,14 +14,21 @@
role :db, "192.168.1.112", :primary => true # This is where Rails migrations will run
role :db, "192.168.1.112"
-# If you are using Passenger mod_rails uncomment this:
-# if you're still using the script/reapear helper you will need
-# these http://github.com/rails/irs_process_scripts
+default_run_options[:pty] = true
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
+
+ desc "Installs required gems"
+ task :gems, :roles => :app do
+ run "cd #{current_path} && sudo rake gems:install RAILS_ENV=production"
+ end
+ after "deploy:setup", "deploy:gems"
+
+ before "deploy", "deploy:web:disable"
+ after "deploy", "deploy:web:enable"
end

0 comments on commit 3f04e6d

Please sign in to comment.