Help us understand the problem. What is going on with this article?

Travis CI への Heroku Deployment に失敗する場合の一例

More than 3 years have passed since last update.

問題

Travis CI での Heroku Deployment に失敗する。Heroku Deployment - Travis CI にある公式の手順どおりにやっても解決しない。

解決策

travis の対象 repository が間違っている可能性がある。

travis show で確認する。

次の例は bouzuya/mr-jums を期待していたのに bouzuya/bbn-cycle を対象 repository にされていたときのもの。

$ travis show
Build #30:  DEPRECATED
State:         passed
Type:          push
Branch:        master
Compare URL:   https://github.com/bouzuya/bbn-cycle/compare/33cba4ca5db8...3b97b612bfd5
Duration:      6 min 57 sec
Started:       2016-10-11 09:21:36
Finished:      2016-10-11 09:24:08

#30.1 passed:    2 min 27 sec   node_js: node, os: linux
#30.2 passed:    2 min 15 sec   node_js: 6, os: linux
#30.3 passed:    2 min 15 sec   node_js: 5, os: linux

対象 repository が間違っていると travis encrypt の対象も変わってしまう。travis encrypt -r オプションで指定するか、git clone し直すなどして、対象 repository を変更する。

次は travis encrypt -r user/repo での対応例。

travis encrypt -r bouzuya/mr-jums $(heroku auth:token) --add deploy.api_key
bouzuya
ぼく、ぼうずや。なさけはひとのためならず。たのしいはせいぎ。
http://bouzuya.net/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした