我在这里慢慢地绝望。 我按照GitHub上的官方指南设置了GitLab。
直到“捆绑安装”一切都没问题。 但如果我在这里试试这个:
$ sudo -u git -H bundle install --deployment --without development test postgres aws
它挂起“从https://rubygems.org/获取源索引”
更改gemfile中的内容会产生更多麻烦...
如果已安装rake,则会触发此错误消息:
$ sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production
Could not find rake-10.1.0 in any of the sources
Run `bundle install` to install missing gems.
这里做什么?为什么它比需要的更复杂? 如果有人可以提供帮助,我会很高兴。
感谢。
答案 0 :(得分:6)
刚刚解决了我的问题(在我的神经失去了14个小时后......)
官方指南中的“安装宝石”是可以的。
然后我在这里尝试了这个:
$ sudo bundle install --path vendor/bundle
我从http://bb-m.rubygems.org/gems/rake-10.1.0.gem下载了“rake”(使用wget) 进入“/home/git/gitlab/vendor/bundle/ruby/2.0.0/cache”目录
给予所有权利(chmod 777 rake ....)
然后尝试了这个:
$ sudo -u git -H bundle install --verbose --deployment --without development test postgres aws
和 - >
Your bundle is complete!
Gems in the groups development, test, postgres and aws were not installed.
It was installed into ./vendor/bundle
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Post-install message from haml:
HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
your application:
* Support for Ruby 1.8.6 dropped
* Support for Rails 2 dropped
* Sass filter now always outputs <style> tags
* Data attributes are now hyphenated, not underscored
* html2haml utility moved to the html2haml gem
* Textile and Maruku filters moved to the haml-contrib gem
For more info see:
http://rubydoc.info/github/haml/haml/file/CHANGELOG.md
Post-install message from httparty:
When you HTTParty, you must party hard!