Heroku Deployment NetRC Issues

heroku

#1

I have a relatively simple rails app that I’d like to build in CircleCI, deploy to Heroku, migrate the database, then restart.

I’ve followed the CirceCI docs here, but I’m still getting the following error when I try and have CirceCI run anything related to “heroku run”.

Error:

Running rake db:migrate on ⬢ my-app... !
 ▸    Invalid credentials
 ▸    provided.
 ▸    API key is currently set
 ▸    by the HEROKU_API_KEY
 ▸    environment variable.
 ▸    Ensure this is set to a
 ▸    correct value or unset
 ▸    it to use the netrc
 ▸    file.
Exited with code 1

#2

Is this error happening on the CircleCI side or the Heroku side?


#3

It seems like on the CircleCi side, but it’s the Heroku tools that are
producing the error message.


#4

Thanks for the additional details. Could you share a build link with me so I can dig in a bit more?


#5

CIRCLE_BUILD_URL=https://circleci.com/gh/AshtonKem/feedback-app/35

Is that what you needed?


#6

Yep perfect, does this work locally for you if you run the commands from your computer?


#7

Absolutely.


#8

Dang, email did not work correctly.

Yes, these commands work locally on my box. They’re fairly bog standard Heroku commands as far as I know.


#9

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.