Skip to content
This repository was archived by the owner on Apr 19, 2019. It is now read-only.

Commit 0e22a7b

Browse files
committed
Updated capistrano and made some adjustments to fix errors in the deploy.
1 parent cd50934 commit 0e22a7b

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ pids/*
2626
doc/app/*
2727
.sass-cache/
2828
config/analytics_conf.yml
29+
public/assets/*

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ gem 'table_helper', :git => 'git://github.com/eeng/table_helper.git'
5252

5353
group :development do
5454
#gem 'ruby-debug19', :require => 'ruby-debug'
55-
gem 'capistrano', '~> 2.5'
55+
gem 'capistrano', '~> 2.11'
5656
gem 'capistrano-ext'
5757
gem 'translate-rails3', :require => 'translate', :git => 'git://github.com/mconf/translate.git'
5858
gem 'rails-dev-tweaks', '~> 0.5.2' # speed up rails 3.1 development server

Gemfile.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ GEM
8484
mime-types
8585
xml-simple
8686
builder (3.0.0)
87-
capistrano (2.6.0)
87+
capistrano (2.11.2)
8888
highline
8989
net-scp (>= 1.0.0)
9090
net-sftp (>= 2.0.0)
@@ -141,7 +141,7 @@ GEM
141141
crack (>= 0.1.6)
142142
god (0.12.1)
143143
haml (3.1.4)
144-
highline (1.6.2)
144+
highline (1.6.11)
145145
hike (1.2.1)
146146
hoe (2.9.4)
147147
rake (>= 0.8.7)
@@ -166,7 +166,7 @@ GEM
166166
net-ssh (>= 1.99.1)
167167
net-sftp (2.0.5)
168168
net-ssh (>= 2.0.9)
169-
net-ssh (2.1.4)
169+
net-ssh (2.3.0)
170170
net-ssh-gateway (1.1.0)
171171
net-ssh (>= 1.99.1)
172172
nokogiri (1.4.1)
@@ -283,7 +283,7 @@ DEPENDENCIES
283283
attachment_fu!
284284
bigbluebutton-api-ruby!
285285
bigbluebutton_rails!
286-
capistrano (~> 2.5)
286+
capistrano (~> 2.11)
287287
capistrano-ext
288288
chronic
289289
ci_reporter

Rakefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
33
require 'rubygems'
44
require 'bundler/setup'
5-
require 'rspec/core/rake_task'
65
require 'rake'
76
require File.expand_path('../config/application', __FILE__)
87

98
desc 'Default: run specs.'
109
task :default => ["db:test:prepare", "db:seed", :spec]
1110

1211
Mconf::Application.load_tasks
12+
13+
# conditional load so it doesn't fail when in production
14+
begin
15+
require 'rspec/core/rake_task'
16+
rescue LoadError
17+
end

config/deploy.rb

+4-6
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,8 @@
178178
end
179179

180180
# From: http://stackoverflow.com/questions/312214/how-do-i-run-a-rake-task-from-capistrano
181-
namespace :rake do
182-
desc "Run a task on a remote server."
183-
# example: cap staging rake:invoke task=jobs:queued
184-
task :invoke do
185-
run("cd #{deploy_to}/current; bundle exec rake #{ENV['TASK']} RAILS_ENV=production")
186-
end
181+
# example: cap staging invoke task=jobs:queued
182+
desc "Run a task on a remote server."
183+
task :invoke do
184+
run("cd #{deploy_to}/current; bundle exec rake #{ENV['TASK']} RAILS_ENV=production")
187185
end

0 commit comments

Comments
 (0)