Permalink
Browse files

just use public git url in deploy

  • Loading branch information...
1 parent a8e0bdf commit d754213c5e85f73e707ffc52bfec4369bba4c434 @RicSwirrl RicSwirrl committed May 9, 2011
Showing with 25 additions and 13 deletions.
  1. +0 −1 .gitignore
  2. +25 −12 config/{deploy.rb.example → deploy.rb}
View
1 .gitignore
@@ -4,7 +4,6 @@
app/views/themes/symlinked
config/config.yml
-config/deploy.rb
log/*.log
tmp/**/*
db/*.sqlite3
View
37 config/deploy.rb.example → config/deploy.rb
@@ -1,28 +1,37 @@
+require 'bundler/capistrano' # enable bundler stuff!
+
+# rvm stuff
+$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
+require "rvm/capistrano" # Load RVM's capistrano plugin.
+set :rvm_ruby_string, '1.8.7' # Or whatever env you want it to run in.
+set :rvm_type, :user
+###
+
set :application, "semjo"
-server "your.server.here", :app, :web, :db, :primary => true
+server "web1.swirrl.com", :app, :web, :db, :primary => true
set(:deploy_to) { File.join("", "home", user, application) }
set :config_files, %w(config.yml)
default_run_options[:pty] = true
-set :repository, "git@github.com:swirrl/semjo.git"
+set :repository, "https://github.com/Swirrl/semjo.git"
set :scm, "git"
-set :scm_passphrase, "your-passphrase-here"
+set :branch, "master"
+
set :user, "rails"
set :runner, "rails"
+set :admin_runner, "rails"
set :use_sudo, false
-set :branch, "master"
+set :ssh_options, {:forward_agent => true, :port => 2224 }
-ssh_options[:port] = 2224
+set :deploy_via, :remote_cache
after "deploy:setup", "deploy:upload_app_config"
-
-after "deploy:symlink", "deploy::symlink_app_config", "deploy:symlink_themes"
-
+after "deploy:symlink", "deploy:symlink_app_config", "deploy:symlink_themes"
after "deploy:finalize_update", "deploy:update_design_docs"
namespace :deploy do
@@ -56,7 +65,7 @@
end
task :update_design_docs do
- run "rails runner \"CouchRestMigration::update_all_design_docs\" -e production"
+ run "cd #{current_path}; rails runner 'CouchRestMigration::update_all_design_docs' -e production"
end
desc "Copy local config files from app's config folder to shared_path."
@@ -70,8 +79,12 @@
end
task :symlink_themes do
- run "rm -rf #{current_path}/app/views/themes"
- run "ln -fs #{shared_path}/themes #{current_path}/app/views/"
+ run "rm -rf #{current_path}/app/views/themes/symlinked"
+ run "mkdir #{current_path}/app/views/themes/symlinked"
+ run "ln -fs #{shared_path}/themes/* #{current_path}/app/views/themes/symlinked/"
end
-end
+end
+
+#require 'config/boot'
+#require 'hoptoad_notifier/capistrano'

0 comments on commit d754213

Please sign in to comment.