我安装了Canvas LMS;当我运行canvas_init start时,出现错误

时间:2017-03-23 14:17:30

标签: ruby-on-rails ruby bundler canvas-lms

如标题所述,我收到错误。具体来说,这个:

Undefined local variable or method `git_source' for Gemfile
        from /var/www/canvas/Gemfile.d/_before.rb:53

我查了一下bundler:

canvas$ bundler -v

返回:

Bundler version 1.13.6

相关的代码部分是:

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include? ("/")
  "https://github.com/#{repo_name}.git"
end

我理解'git_source'是在Bundler 1.6中引入的。想法?

0 个答案:

没有答案