search for: before_restart

Displaying 6 results from an estimated 6 matches for "before_restart".

2007 Mar 12
7
Capistrano Hanging on Deployment
Hello ~ I am using the Capistrano recipe outlined in this post to restart my backgroundrb server: http://rubyforge.org/pipermail/backgroundrb-devel/2007-February/000718.html My Version: ~~~~~~~~~~~~ task :before_restart, :roles => :app do restart_backgroundrb end task :start_backgroundrb, :roles => :app do sudo "nohup /var/www/rails/#{application}/current/script/backgroundrb/start " end task :stop_backgroundrb, :roles => :app do sudo "kill -9 `cat /var/www/rails/#{application}/cu...
2006 Jan 26
7
Switchtower Port Issues
Hi there, I''m having some difficulties finding some decent info on getting Switchtower to function for my needs. I''ve read most of the Switchtower doc on http://manuals.rubyonrails.com/read/chapter/97, however it''s not answering some potent questions I have. 1. The doc mentions, as an example, using an SVN repos at http://svn.switchtower.com/flipper/trunk What if I
2006 Aug 24
5
Unable to start with Capistrano...
I''ve created a couple of tasks in my deploy.rb file for starting and stopping backgroundrb on the remote server. The stop task runs fine and kills the process. And the start task *seems* to run successfully, but backgroundrb is never started on the remote host. Has anyone had success with this? Here are my deploy tasks: desc ''Start backgroundrb server (default
2007 Feb 05
3
Deploying to production with backgroundrb (capistrano)
I have noticed that occasionally (about 50% of the time) when i deploy (using capistrano) my app to a production server, i have to ssh into the box and manually stop and start backgroundrb to get it to load my workers. this is my basic setup i have 2 workers: lib/workers/mp3_worker.rb => takes a hash of params to downsample an mp3 lib/workers/flv_worker.rb => takes a has of
2006 Jul 06
6
Capistrano deployment questions == Best practice type ones
Hi everyone, I''ve been sold on the whole idea of using Capistrano for deployment of my sites and have successfully deployed three apps in three different environments all with success. As I''m trying to configure my sites I''ve encountered a number of issues/questions hence this post. 1. Database.yml Twice I''ve been stumped by apps refusing to work on
2006 Apr 21
9
Capistrano, OS X
...pen("#{current_path}/public/#{name}", "r+") do |f| f_contents = f.read f_contents.gsub!(/^#!.+$/, new_hashbang) f.rewind f.write(f_contents) end end Add the following in deploy.rb, with the path to ruby on your production server in the second argument: task :before_restart do run "#{current_path}/script/fix_hashbangs.rb #{current_path} ''#!/path/to/ruby''" end Now your dispatch.* files will be edited automatically when you deploy. --Al Evans -- Posted via http://www.ruby-forum.com/.