[英]Deploying Rails 3 app with git post receive
我正在使用git的post-receive鈎子將Ruby on Rails / NodeJS應用程序部署到專用主機。
git checkout -f
/site/sys/post-receive.sh
我的存儲庫位於一個文件夾repo.git
,實際文件被復制到site
。
問題是RVM不在我的路徑中(我想),因此: bundle install
失敗,並且bundle no such command
失敗。
我該怎么辦?
全包錯誤:
remote: /usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError)
remote: from /usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
remote: from /usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:1230:in `gem'
remote: from /usr/local/rvm/gems/ruby-1.9.3-p125/bin/bundle:18:in `<main>'
鍵入which bundle
以查看可執行文件的確切位置。 然后在帖子接收鈎子腳本中使用該絕對位置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.