RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

SlightlyCoded: Using Capistrano With Phusion Passenger

Comments

I think you’re missing the point of Capistrano in the article - Capistrano is designed so you don’t have to write stuff like “svn up wherever” - You specify your scm repository etc. and then just over ride the tasks that you need to (in this case, you’d set up the svn stuff and all the usual cap properties / settings e.g. repository, etc and then you’d over ride the ones specifically that start / stop the app etc. E.g., for passenger:

namespace :deploy do

[:start, :stop].each do |name| desc “#{name} the application (does nothing w/ passenger)” task name do end end

desc “Restart the Application” task :restart do run “touch #{current_path}/tmp/restart.txt” end

end </code>

And it looks like Rubyflow b0rked the whitespace.

yes i understand the greatness of capfy . and then setting up your 10 past deploys and whatnot, but this was meant for a beginners introduction to capistrano. but as always, thanks for the input.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in