开发者

Unable to publish to heroku

I am using OS X.

ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]

rails -v
Rails 3.0.8

which ruby
/Users/apple/.rvm/rubies/ruby-1.9.2-p180/bin/ruby

which rails
/Users/apple/.rvm/gems/ruby-1.9.2-p180@rails3/bin/rails

When i use the command git pu开发者_如何转开发sh heroku master, I get

!     Heroku push rejected, no Rails or Rack app detected

To git@heroku.com:testingnewyork.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:testingnewyork.git'

What should i do?


Looks similar to this question: push rails app to heroku

If you didn't run the git commands inside a Rails app, Heroku has no idea what you're pushing :)


You need to change directory into the application folder:

rails new testingnewyork
cd testingnewyork
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜