Permalink
Browse files

deploy updates

  • Loading branch information...
1 parent ce23ec4 commit 515c4f5860c085460bd37bb45fbbed92fe177f62 Alexander Mekelburg committed May 6, 2013
Showing with 21 additions and 15 deletions.
  1. +1 −1 .ruby-gemset
  2. +20 −14 config/deploy.rb
View
@@ -1 +1 @@
-rocky3
+rocky4
View
@@ -28,6 +28,7 @@
+
set :application, "rocky"
set :repository, "git@github.com:trustthevote/Rocky.git"
@@ -71,11 +72,16 @@
before 'deploy:setup', 'rvm:install_rvm' # install RVM
before 'deploy:setup', 'rvm:install_ruby'
+before 'deploy:setup', 'rvm:install_passenger'
+# before 'deploy:setup', 'rvm:setup_passenger'
+
before 'deploy', 'rvm:install_ruby' # install Ruby and create gemset (both if missing)
require "rvm/capistrano"
+load 'deploy/assets'
+
after "deploy:update_code", "deploy:symlink_configs", "deploy:symlink_pdf", "deploy:symlink_csv", "deploy:symlink_partners"
@@ -97,6 +103,19 @@
end
end
+namespace :rvm do
+
+ desc "Install passenger"
+ task :install_passenger, :roles => :app do
+ run "gem install passenger", :shell => fetch(:rvm_shell)
+ end
+
+ desc "Install and setup RVM Passenger"
+ task :setup_passenger, :roles => :app do
+ run "passenger-install-apache2-module", :shell => fetch(:rvm_shell)
+ end
+end
+
namespace :deploy do
desc "import states.yml data"
task :import_states_yml, :roles => [:app] do
@@ -219,23 +238,10 @@
end
end
-# TODO: Is this ever used ?
-# namespace :import do
-# desc "Upload state data from CSV_FILE and restart server"
-# task :states, :roles => :app do
-# local_path = ENV['CSV_FILE'] || 'states.csv'
-# remote_dir = File.join(shared_path, "uploads")
-# remote_path = File.join(remote_dir, File.basename(local_path))
-# run "mkdir -p #{remote_dir}"
-# top.upload local_path, remote_path, :via => :scp
-# run "cd #{current_path} && bundle exec rake import:states CSV_FILE=#{remote_path}"
-# find_and_execute_task "deploy:restart"
-# end
-# end
-
require './config/boot'
require 'airbrake/capistrano'
require 'bundler/capistrano'
+

0 comments on commit 515c4f5

Please sign in to comment.