Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Let's get deployed

  • Loading branch information...
commit 35235b1f49d4109be1b1ca89b40f05532ec46292 1 parent 68f2c0b
@qrush qrush authored
Showing with 9 additions and 1 deletion.
  1. +8 −0 Capfile
  2. +1 −1  Rakefile
View
8 Capfile
@@ -26,4 +26,12 @@ namespace :deploy do
task :restart, :roles => [:app] do
run "touch #{current_path}/tmp/restart.txt"
end
+
+ task :setup do
+ run "rm -rf #{release_path}/server"
+ run "ln -s /home/rails/gems.gemcutter #{release_path}/server"
+ run "ln -s /home/rails/cache #{release_path}/cache"
+ end
end
+
+after "deploy:finalize_update", "deploy:setup"
View
2  Rakefile
@@ -89,7 +89,7 @@ namespace :import do
require 'active_support'
url_queue = File.readlines("rubygems.txt").map { |g| g.strip }
puts "Downloading #{url_queue.size} gems..."
- FileUtils.mkdir("cache")
+ FileUtils.mkdir("cache") unless File.exist?("cache")
responses = {}
url_queue.in_groups_of(100).each do |group|
Please sign in to comment.
Something went wrong with that request. Please try again.