I had trouble re-deploying the sample app from Hartls book:
! No such app as murmuring-beyond-6630.
So then I logged into Heroku, deleted the app and created another...
fatal: The remote end hung up unexpectedly
yuliya@ubuntu:~/rails_projects/sample_app$ heroku create
Creating cryptic-plains-9409... done, stack is cedar
http://cryptic-plains-9409.herokuapp.com/ | git@heroku.com:cryptic-plains-9409.git
yuliya@ubuntu:~/rails_projects/sample_app$ heroku keys:add
Found existing public key: /home/yuliya/.ssh/yuliya.pub
Uploading SSH public key /home/yuliya/.ssh/yuliya.pub... done
yuliya@ubuntu:~/rails_projects/sample_app$ git push heroku master
! No such app as murmuring-beyond-6630.
Still referenced previous app so I removed it using the git rm heroku command. Then I ran heroku create. Then tried to push the app again...
yuliya@ubuntu:~/rails_projects/sample_app$ git remote add heroku git@heroku.com:cryptic-plains-9409
yuliya@ubuntu:~/rails_projects/sample_app$ git push heroku master
! Invalid path.
! Syntax is: git@heroku.com:<app>.git where <app> is your app's name.
I am completely stuck and would appreciate any help here. I am brand new to this, and thank you for your time!
I believe you left off the .git
, which is what the error is complaining about.
Try this,
git remote set-url heroku git@heroku.com:cryptic-plains-9409.git
git push heroku master
Referenced this question: How does "git push heroku master" know where to push to and how to push to a different repo?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.