How to solve this problem:bundle exec rake gitlab:setup RAILS_ENV=production
Created by: hanwenbo
-bash-4.1# bundle exec rake gitlab:setup RAILS_ENV=production
rake aborted!
Bundler::GemRequireError: There was an error while trying to load the gem 'turbolinks'.
Gem Load Error is: undefined method assets' for #<Rails::Engine::Configuration:0x007faf53c76370> Backtrace for gem load error is: /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.16/lib/rails/railtie/configuration.rb:85:in
method_missing'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/turbolinks-5.0.1/lib/turbolinks.rb:17:in <class:Engine>' /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/turbolinks-5.0.1/lib/turbolinks.rb:14:in
module:Turbolinks'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/turbolinks-5.0.1/lib/turbolinks.rb:5:in <top (required)>' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:91:in
require'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:91:in block (2 levels) in require' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in
each'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in block in require' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in
each'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in require' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler.rb:107:in
require'
/home/git/gitlab/config/application.rb:9:in <top (required)>' /home/git/gitlab/Rakefile:5:in
require'
/home/git/gitlab/Rakefile:5:in <top (required)>' /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.5.0/lib/rake/rake_module.rb:28:in
load'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.5.0/lib/rake/rake_module.rb:28:in load_rakefile' /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.5.0/lib/rake/application.rb:689:in
raw_load_rakefile'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.5.0/lib/rake/application.rb:94:in block in load_rakefile' /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.5.0/lib/rake/application.rb:176:in
standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.5.0/lib/rake/application.rb:93:in load_rakefile' /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.5.0/lib/rake/application.rb:77:in
block in run'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.5.0/lib/rake/application.rb:176:in standard_exception_handling' /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.5.0/lib/rake/application.rb:75:in
run'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.5.0/bin/rake:33:in <top (required)>' /home/git/gitlab/vendor/bundle/ruby/2.0.0/bin/rake:22:in
load'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/bin/rake:22:in <top (required)>' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:74:in
load'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:74:in kernel_load' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:27:in
run'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/cli.rb:335:in exec' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
run'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in invoke_command' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor.rb:359:in
dispatch'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/cli.rb:20:in dispatch' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in
start'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/cli.rb:11:in start' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/exe/bundle:32:in
block in <top (required)>'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/lib/bundler/friendly_errors.rb:121:in with_friendly_errors' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.14.6/exe/bundle:24:in
<top (required)>'
/usr/local/bin/bundle:23:in load' /usr/local/bin/bundle:23:in
'
Bundler Error Backtrace:
/home/git/gitlab/config/application.rb:9:in <top (required)>' /home/git/gitlab/Rakefile:5:in
require'
/home/git/gitlab/Rakefile:5:in <top (required)>' /usr/local/bin/bundle:23:in
load'
/usr/local/bin/bundle:23:in `'
(See full trace by running task with --trace)