Neil Neil - 3 months ago 24
Ruby Question

Rails App on Heroku: Where is my Encrypted API key For Travis CI?

I need to grab my encrypted API Key.

I notice the section for API Key. Is that what this is referring to? I'm not sure if this is actually the encrypted key or if the encrypted key is actually somewhere else.

There is nothing that states this is the encrypted key. It just says "API Key".


You need to add travis CI api key to your .travis.yml file.

From the travis ci documentation

If you have both the Heroku and Travis CI command line clients installed, you can get your key, encrypt it and add it to your .travis.yml by running the following command from your project directory:

travis encrypt $(heroku auth:token) --add deploy.api_key

You can also use the Travis CI command line setup tool:

travis setup heroku

Hope this helps.