的Rails 3.0.0,乘客2.2.15安裝git的寶石:的Rails 3:乘客無法找到捆綁
- 創建一個新的Rails項目
- 添加
gem 'paperclip', :git => 'git://github.com/lmumar/paperclip.git', :branch => 'rails3'
到你的Gemfile - 待辦事項
bundle install
- 一切OK,開始
rails/script server
&訪問也適用 - 然而,隨着客運訪問時,它說:
git://github.com/lmumar/paperclip.git(在rails3)沒有簽出。請運行bundle install
(捆紮機:: GitError)
我已經試過bundler pack
(不利於)和設置BUNDER_HOME到〜/ .bundler(迴紋針的git得到由bundler install
安裝在那裏)在.htaccess和配置不同的地方/*.rb,但這也不成功。
〜/ .bundler與Rails項目擁有相同的用戶(Passenger在該用戶下運行),因此它不會成爲權限問題。 sudo安裝並由bundle install
調用。
任何提示?
這是不是'serverfault'的更好的候選人,因爲它涉及到設置'nginx'或'apache'? – alternative 2010-08-31 00:35:41
我不明白。 Passenger遇到問題,使用Apache。 – junique 2010-08-31 00:50:39
'捆綁包'解決了我的問題。 http://stackoverflow.com/questions/2494399/deploying-rails3-apps-with-bundler-and-phusion-passenger-bundle-dir-not-found – zires 2012-04-19 03:16:55