Neil
Neil

Reputation: 5188

travis setup heroku command yields repository not known error

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:

Ok now the deployment hook with heroku.

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

Upvotes: 2

Views: 359

Answers (1)

K M Rakibul Islam
K M Rakibul Islam

Reputation: 34336

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.

Upvotes: 1

Related Questions