0

我已经使用 Ubuntu 构建了一个 ruby​​ on rails 应用程序。我的应用程序在 github 上。通常,我通过在终端中执行以下操作将最新进展从 github 传输到我的网站 www.mywebsite.com:

cap production deploy:migrations

一切正常。我在终端中看到了转移的进度,例如:

* executing "rm -rf /var/www/apps/myapp/releases/20130720123042/public/assets &&\\\n        mkdir -p /var/www/apps/myapp/releases/20130720123042/public &&\\\n        mkdir -p /var/www/apps/myapp/shared/assets &&\\\n        ln -s /var/www/apps/myapp/shared/assets /var/www/apps/myapp/releases/20130720123042/public/assets"
    servers: ["92.51.243.6"]
    [92.51.243.6] executing command
    command finished in 626ms
  * executing `bundle:install'
  * executing "cd /var/www/apps/myapp/releases/20130720123042 && bundle install --gemfile /var/www/apps/myapp/releases/20130720123042/Gemfile --path /var/www/apps/myapp/shared/bundle --deployment --quiet --without development test"
    servers: ["92.51.243.6"]
    [92.51.243.6] executing command
    command finished in 1595ms
  * executing "chmod -R g+w /var/www/apps/myapp/releases/20130720123042"
    servers: ["92.51.243.6"]
    [92.51.243.6] executing command
    command finished in 645ms

现在该过程没有像以前那样完成,我收到以下消息:

  * executing "cd /var/www/apps/myapp/releases/20130720123042 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
    servers: ["92.51.243.6"]
    [92.51.243.6] executing command
 ** [out :: 92.51.243.6] rake aborted!
 ** [out :: 92.51.243.6] Received wrong number of arguments. [nil]
 ** [out :: 92.51.243.6] /var/www/apps/myapp/shared/bundle/ruby/1.8/gems/omniauth-1.1.0/lib/omniauth/strategy.rb:136:in `initialize'


more stuff here like the line above..

failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'ree-1.8.7-2012.02' -c 'cd /var/www/apps/myapp/releases/20130720123042 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'" on 92.51.243.6
mypc@ubuntu:~/myapp$ 

知道如何解决这个问题吗?谢谢。

4

0 回答 0