Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

save

  • Loading branch information...
commit 9bafbff8f4b7575942ebd3975c975083fa4cb81e 1 parent 8b3b88f
@releu releu authored
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
4 Capfile
@@ -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
24 config/deploy.rb
@@ -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
+
View
1  config/initializers/redis.rb
@@ -0,0 +1 @@
+$redis = Redis.new
Please sign in to comment.
Something went wrong with that request. Please try again.