我安装我的宝石生产一起工作:无法取得束EXEC生产
cd /app/releases/current && bundle install --gemfile /app/releases/current/Gemfile --path /app/shared/bundle --deployment --quiet --without development test
我不能bundle exec
我的任何宝石(除rake
和gem
):
$ bundle exec whenever
bundler: command not found: whenever
Install missing gem executables with `bundle install`
的宝石是否正确安装在/ app /共享/捆扎:
$ cd /app/shared
$ find . -name whenever
./bundle/ruby/1.9.1/gems/whenever-0.6.8/bin/whenever
./bundle/ruby/1.9.1/gems/whenever-0.6.8/lib/whenever
我(GE nerated)软件包配置(在/app/current/.bundle/config)是:
---
BUNDLE_FROZEN: "1"
BUNDLE_PATH: /app/shared/bundle
BUNDLE_DISABLE_SHARED_GEMS: "1"
BUNDLE_WITHOUT: development:test
我运行红宝石1.9.2p290,手动安装到/ usr/local/bin目录。
我必须bundle install
我的宝石与--binstubs
选项?为什么bundle exec
不能搜索存储的BUNDLE_PATH
?
我有类似的问题我用'bundle install --deployment'解决了问题。我不确定**为什么**这样做,所以这就是为什么这是一个评论,而不是一个答案。 –
我的capistrano任务在运行'bundle install'时包含'--deployment'参数。你是这个意思吗?或者你的意思是,删除'--path'参数? – nfm
您是使用capistrano还是进行手动部署? – Nick