Skip to content

Instantly share code, notes, and snippets.

@defunkt
Created November 10, 2009 22:56
Show Gist options
  • Save defunkt/231351 to your computer and use it in GitHub Desktop.
Save defunkt/231351 to your computer and use it in GitHub Desktop.

Revisions

  1. defunkt created this gist Nov 10, 2009.
    15 changes: 15 additions & 0 deletions unicorn.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # http://unicorn.bogomips.org/SIGNALS.html

    namespace :unicorn do
    task :start, :roles => :app do
    sudo "god start unicorn"
    end

    task :stop, :roles => :app do
    sudo "god stop unicorn"
    end

    task :restart, :roles => :app do
    sudo "god restart unicorn"
    end
    end