0

我正在尝试将更改部署到我的登台服务器(在 heroku 上)并且我不断收到以下错误消息:

    Matthews-MacBook-Air-2:iGiveMore WorkWell$ rake deploy staging --trace
rake aborted!
Don't know how to build task 'deploy'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/gems/rake-10.0.3/lib/rake/task_manager.rb:49:in `[]'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/gems/rake-10.0.3/lib/rake/application.rb:142:in `invoke_task'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/gems/rake-10.0.3/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/gems/rake-10.0.3/lib/rake/application.rb:101:in `each'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/gems/rake-10.0.3/lib/rake/application.rb:101:in `block in top_level'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/gems/rake-10.0.3/lib/rake/application.rb:110:in `run_with_threads'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/gems/rake-10.0.3/lib/rake/application.rb:95:in `top_level'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/gems/rake-10.0.3/lib/rake/application.rb:73:in `block in run'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/gems/rake-10.0.3/lib/rake/application.rb:70:in `run'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/gems/rake-10.0.3/bin/rake:33:in `<top (required)>'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/bin/rake:23:in `load'
/Users/WorkWell/.rvm/gems/ruby-1.9.2-p290/bin/rake:23:in `<main>'

请帮忙!

4

1 回答 1

1

Heroku 部署不使用 rake。你这样做git push $REMOTE $REF:master,其中 $REMOTE 是 git 远程的名称或 git URL,而 $REF 是 master、HEAD 或您想要推送的其他一些提交。

此外,如果你正在推送当前的 HEAD,你可以这样做git push $REMOTE master,或者,取决于你的 git 配置,git push $REMOTE

于 2012-12-31T22:21:49.860 回答