Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

capified

Signed-off-by: rick <technoweenie@gmail.com>
  • Loading branch information...
commit b2686097cefd6788871a7f18d90f4d80fb987e60 1 parent 95eeec5
Kalin Harvey authored committed
Showing with 34 additions and 0 deletions.
  1. +3 −0  Capfile
  2. +31 −0 config/deploy.rb
View
3  Capfile
@@ -0,0 +1,3 @@
+load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+load 'config/deploy'
View
31 config/deploy.rb
@@ -0,0 +1,31 @@
+default_run_options[:pty] = true
+
+# be sure to change these
+set :user, 'agilities'
+set :domain, 'discipline.es'
+set :application, 'seinfeld'
+
+# the rest should be good
+set :repository, "git@github.com:krrh/#{application}.git"
+set :deploy_to, "/home/#{user}/#{domain}"
+set :deploy_via, :remote_cache
+set :scm, 'git'
+set :branch, 'master'
+set :git_shallow_clone, 1
+set :scm_verbose, true
+set :use_sudo, false
+
+server domain, :app, :web
+role :db, domain, :primary => true
+
+# desc "Link in the production database.yml and link to http credentials"
+# task :after_update_code do
+# run "ln -nfs #{deploy_to}/#{shared_dir}/config/database.yml #{release_path}/config/database.yml"
+# run "ln -nfs #{deploy_to}/#{shared_dir}/lib/http_auth.rb #{release_path}/lib/http_auth.rb"
+# end
+
+namespace :deploy do
+ task :restart do
+ run "touch #{current_path}/tmp/restart.txt"
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.