'heroku' does not appear to be a git repository

前端 未结 21 2074
失恋的感觉
失恋的感觉 2020-12-12 08:47

When I try to push my app to Heroku I get this response:

fatal: \'heroku\' does not appear to be a git repository
fatal: Could not read from remote repositor         


        
21条回答
  •  醉话见心
    2020-12-12 09:06

    The following commands will work well for ruby on rails application deployment on heroku if heroku is already installed on developers machine. # indicates a comment

    1. heroku login
    2. heroku create
    3. heroku keys:add #this adds local machines keys to heroku so as to avoid repeated password entry
    4. git push heroku master
    5. heroku rename new-application-name #rename application to the preferred name other than the auto generated heroku name

提交回复
热议问题