Everybody,
I get开发者_如何学运维 an error when I run this command: "git push heroku master". The error log shows the following:
$ git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.156' to the list of known hosts.
Counting objects: 3, done.
Writing objects: 100% (3/3), 209 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
-----> Heroku receiving push
! Heroku push rejected, no Rails or Rack app detected
To git@heroku.com:simple-earth-536.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@app_name.git'
Any idea what could cause this? I welcome any suggestions, thanks all.
This means that you are not in a rails application, such as if you are not in the correct directory.
Make sure you are actually in your apps directory.
rails myapp
cd myapp
This is the flow you should go through"
rails new_app
git init
git add .
git commit -m 'master'
heroku create
git push heroku
精彩评论