我正在使用Subversion和Capistrano部署我的Rails應用程序。該組織的一部分是將所有捆綁的寶石放在一個「共享」文件夾中,這樣應用程序就不必隨身攜帶它們並在每次部署時都安裝它們。捆綁寶石安裝在奇怪的位置
通常他們會根據/shared/bundle/
,然後有不同的文件夾(寶石,規格等)。但是,由於某種原因,當我運行bundle install
時,他們正在安裝到/shared/bundle/ruby/1.8
。
一些額外的信息:當我運行bundle install
, 「成功」 行讀取:
你的包是完整的!它被安裝到/家庭/共享/束
額外的文件夾沒有提到,但唯一的文件夾bundle
包含爲ruby
目錄。
的bundle config
輸出:
frozen
Set for your local app (/home/myapp/current/.bundle/config): "1"
disable_shared_gems
Set for your local app (/home/myapp/current/.bundle/config): "1"
without
Set for your local app (/home/myapp/current/.bundle/config): "development:test"
path
Set for your local app (/home/myapp/current/.bundle/config): "/home/myapp/shared/bundle"
我沒有看到任何地方/ruby/1.8
什麼。我可能會錯過什麼?當然,我可以將捆綁器路徑設置爲/shared/bundle/ruby/1.8
,但我不喜歡作弊。
謝謝。
你是對的 - 我的目錄結構是正確的,我只是從一箇舊項目錯誤地記住了。謝謝! – bricker