travis setup heroku command yields repository not known error

a 夏天 提交于 2019-12-11 01:13:41

问题


I am working through the Raild 4 In Action book. On Chapter 13: Deployment, page 464 it is having you do the final configuration for a deployment hook for travis to push to your heroku app upon passing specs.

The book already had me do the following:

  • I entered the .travis.yml file in the root of my app.
  • I then went to https://travis-ci.org/ and signed in via my Github account.
  • I then flipped the switch to on for my project.
  • Now when I do a git push I notice on travis that it does a build and it runs all my specs. It looks like it all passes. At the bottom it says Done. Your build exited with 0.

Ok now the deployment hook with heroku.

  • I do gem install travis to get the gem onto my computer
  • I then do travis login with a github token and it says: Successfully Logged in!

Now I run travis setup heroku and here is the error:

repository not known to https://api.travis-ci.org/:my_repo_name/my_app_name

The book does not mention this error message. I attempted looking around and couldn't find anyone who had run into this problem.

How can I get the travis setup heroku command to do what it is supposed to do?

Update

The issue is that my repo's name on Github is Ticketee and travis-ci for some reason thought it was ticketee. The answer was to open up the following file from the root of my app:

vim .git/config

At the bottom I saw the following

[travis]
    slug = my_git_user_name/ticketee

and I had to change it to this:

[travis]
    slug = my_git_user_name/Ticketee

回答1:


Looks like you're having a similar issue as described in this travis ci issue

To solve this issue, add the following in your .git/config file:

[travis]
    slug = <user/org>/<repo>

make sure slug matches the case-sensitive URL structure you see in Travis.



来源:https://stackoverflow.com/questions/40711472/travis-setup-heroku-command-yields-repository-not-known-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!