我安裝我的寶石生產一起工作:無法取得束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