Commit 02ca0e1b
config/deploy.rb
@@ -13,7 +13,6 @@ set :user, "cakeside"
set :password, "password"
set :group, "rvm"
set :use_sudo, false
-# set :use_sudo, false
set :deploy_to, "/home/cakeside/apps/#{application}"
set :scm, :git
capfile
@@ -1,5 +1,4 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
-#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
@@ -15,23 +14,6 @@ task :show_free_space, :roles => :web do
run "df -h /"
end
-task :stop_sphinx , :roles => :app do
- run "cd #{current_path} && rake thinking_sphinx:stop RAILS_ENV=production"
-end
-
-task :start_sphinx, :roles => :app do
- run "cd #{current_path} && rake thinking_sphinx:configure RAILS_ENV=production && rake thinking_sphinx:start RAILS_ENV=production"
-end
-
-task :index_sphinx, :roles => :app do
- run "cd #{current_path} && rake thinking_sphinx:index RAILS_ENV=production"
-end
-
-task :restart_sphinx, :roles => :app do
- stop_sphinx
- start_sphinx
-end
-
task :update_bundler do
#run "bundle install --gemfile #{release_path}/Gemfile"
#run "cd #{release_path} && bundle exec rake db:migrate RAILS_ENV=production && bundle exec rake db:seed RAILS_ENV=production"
Rakefile
@@ -14,7 +14,7 @@ namespace :deploy do
task :staging do
sh "cap staging deploy"
sh "cap staging deploy:migrations"
- sh "wget http://staging.cakeside.com/ > /dev/null"
+ sh "curl http://staging.cakeside.com/ > /dev/null"
end
task :production, :tag do |t, args|
tag_to_deploy = args.tag
@@ -25,7 +25,7 @@ namespace :deploy do
puts "deploying to production from tag #{tag_to_deploy}"
sh "cap production deploy -s tag=#{tag_to_deploy}"
sh "cap production deploy:migrations"
- sh "wget http://cakeside.com/ > /dev/null"
+ sh "curl http://cakeside.com/ > /dev/null"
end
end
end