2012-08-03 13 views

回答

0

bundle install --standalone安裝寶石到bundle/bundler/setup目錄。所以在my_worker.rb頂部,添加以下行:

require_relative 'bundle/bundler/setup' 

這應該加載所有的寶石。

1

根據the documentation,您現在可以在工作文件中指定gemfile。當這個問題被問到時,我認爲這是不可用的。

# example.worker 

runtime "ruby" 

gemfile "Gemfile" 

file "lib/model.rb", "lib" 

full_remote_build true 

# You can also add gems individually if you don't want to use a separate file. 
gem "pg" 
gem "aws-sdk" 

取代具有remote_build_command,你指定full_remote_build true,或者只是remote有鐵工設置環境適合你。

相關問題