【发布时间】:2016-05-21 16:07:06
【问题描述】:
我在 Windows 机器上使用命令行时收到此错误 “(回溯仅限于导入的任务)上限中止!LoadError:无法加载此类文件--capistrano/passenger C:/Sites/Buy/Capfile:23:in `' (通过使用 --trace 运行任务查看完整跟踪)"
在 git bash 上使用相同的命令我有这个错误。
" cap production deploy C:/tools/ruby21/lib/ruby/2.1.0/rubygems.rb:235:in bin_path': can't find gem capistrano ([">= 0.a"]) (Gem::GemNotFoundException)
from C:/RailsInstaller/Ruby2.1.0/bin/cap:22:in'"
我正在使用的宝石。
gem 'rails', '4.1.8'
宝石'sqlite3'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'therubyracer',平台::ruby
gem 'rails_12factor',组::生产
gem 'protected_attributes', '~> 1.1', '>= 1.1.3'
gem 'rake', '~> 10.5'
gem 'rake-compiler', '~> 0.9.5'
gem 'rspec', '~> 3.4'
gem 'omniauth-digitalocean', '~> 0.2.0'
gem '设计', '~> 3.5', '>= 3.5.6'
gem 'bootstrap-sass'
gem 'autoprefixer-rails', '~> 6.3', '>= 6.3.1'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'bcrypt', '~> 3.1.7'
宝石'pg'
gem "cf-autoconfig", "~> 0.2.1"
gem 'omniauth', '~> 1.3', '>= 1.3.1'
gem 'json', '~> 1.8', '>= 1.8.3'
gem 'omniauth-twitter', '~> 1.2', '>= 1.2.1'
gem 'omniauth-facebook', '~> 3.0'
平台:红宝石做
宝石'独角兽'
结束
组:开发做
gem 'capistrano', '~> 3.4'
gem 'capistrano-bundler', '~> 1.1', '>= 1.1.4'
gem 'capistrano-rbenv', '~> 2.0', '>= 2.0.4'
gem 'capistrano-rails',组::开发
结束
gem 'tzinfo-data',平台:[:mingw, :mswin]
【问题讨论】:
标签: ruby-on-rails ruby git bash capistrano