Skip to content

Commit

Permalink
Let's get deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed May 25, 2009
1 parent 68f2c0b commit 35235b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Capfile
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -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|
Expand Down

0 comments on commit 35235b1

Please sign in to comment.