[英]git push heroku master error
我在部署heroku時遇到問題。 在線說明建議我遵循以下步驟: https : //devcenter.heroku.com/articles/django#deploy-to-heroku
但是,當我進入“ git push heroku master”時,出現以下錯誤:
Counting objects: 12, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (12/12), 3.44 KiB, done.
Total 12 (delta 1), reused 0 (delta 0)
! Heroku push rejected, no Cedar-supported app detected
To git@heroku.com:mysterious-peak-4781.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:mysterious-peak-4781.git'
有人可以告訴我怎么了嗎?
創建應用后,立即對其重命名。 我猜這是heroku中的必備。
使用此命令
heroku apps:rename NAME
NAME =您要輸入的名字。
如果上述方法無效,
類型
cd .git
vi config
你會得到這樣的東西。
[remote "heroku"]
url = git@heroku.com:NAME.git
這也是一種方法。 更改名稱並嘗試。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.