Permalink
Browse files

save

  • Loading branch information...
releu committed May 18, 2012
1 parent 8b3b88f commit 9bafbff8f4b7575942ebd3975c975083fa4cb81e
Showing with 29 additions and 0 deletions.
  1. +4 −0 Capfile
  2. +24 −0 config/deploy.rb
  3. +1 −0 config/initializers/redis.rb
View
@@ -0,0 +1,4 @@
+load 'deploy'
+load 'deploy/assets'
+Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+load 'config/deploy' # remove this line to skip loading any of the default tasks
View
@@ -0,0 +1,24 @@
+set :rvm_ruby_string, '1.9.3@gistflow'
+require "rvm/capistrano"
+
+require 'bundler/capistrano'
+
+set :application, "gistflow"
+set :repository, "git@github.com:gistflow/gistflow.git"
+
+set :scm, :git
+
+set :user, "gistflow"
+
+role :web, "gistflow.com"
+role :app, "gistflow.com"
+role :db, "gistflow.com", :primary => true
+
+after "deploy:restart", "deploy:cleanup"
+
+namespace :deploy do
+ task :restart do
+ run "cd #{current_release} && rvmsudo god restart unicorn"
+ end
+end
+
@@ -0,0 +1 @@
+$redis = Redis.new

0 comments on commit 9bafbff

Please sign in to comment.