5

Heroku にデプロイしようとしているデプロイ済みアプリケーションあります。アプリケーションのデプロイに成功し、その URL からヒットすることができました。現在、ダッシュボードにアクセスしようとしています。ダッシュボードにアクセスするには、サーバーからキーを生成する必要があります。これを行うには2つの方法があることを理解しています。

ここで説明する最初の方法では、キーをローカルで生成し、heroku にプッシュします。この方法は、キーが VCS に公開されるという意味で安全ではないと思います。

2 番目の方法は、Procfile とリストdpd keygendpd showkey. しかし、何らかの理由で、この方法は私にはうまくいきません。heroku ログでコマンドが実行されているのがわかりますが、キーが出力されず、実行しても表示されませんheroku run dpd showkey

procfile 内のコマンドのリストが機能しない理由を突き止めたいと思います。以下にリストされている私のファイルを見つけてください:

web: node app.js
cmd: dpd keygen
cmd: dpd showkey

私のログファイルは次のとおりです。

2015-08-30T19:18:25.012474+00:00 heroku[api]: Starting process with command `dpd showkey` by [email]
2015-08-30T19:18:28.196008+00:00 heroku[run.5122]: Starting process with command `dpd showkey`
2015-08-30T19:18:28.168161+00:00 heroku[run.5122]: Awaiting client
2015-08-30T19:18:28.501367+00:00 heroku[run.5122]: State changed from starting to up
2015-08-30T19:18:31.023033+00:00 heroku[run.5122]: State changed from up to complete
2015-08-30T19:18:31.012416+00:00 heroku[run.5122]: Process exited with status 0
2015-08-30T19:19:36.935285+00:00 heroku[api]: Starting process with command `dpd keygen` by [email]
2015-08-30T19:19:39.794903+00:00 heroku[run.3022]: Starting process with command `dpd keygen`
2015-08-30T19:19:39.768225+00:00 heroku[run.3022]: Awaiting client
2015-08-30T19:19:40.128378+00:00 heroku[run.3022]: State changed from starting to up
2015-08-30T19:19:42.827722+00:00 heroku[run.3022]: State changed from up to complete
2015-08-30T19:19:42.813695+00:00 heroku[run.3022]: Process exited with status 0
2015-08-30T19:19:51.655953+00:00 heroku[api]: Starting process with command `dpd showkey` by [email]
2015-08-30T19:19:54.911082+00:00 heroku[run.9997]: Awaiting client
2015-08-30T19:19:54.946930+00:00 heroku[run.9997]: Starting process with command `dpd showkey`
2015-08-30T19:19:55.293222+00:00 heroku[run.9997]: State changed from starting to up
2015-08-30T19:19:58.397128+00:00 heroku[run.9997]: State changed from up to complete
2015-08-30T19:19:58.384885+00:00 heroku[run.9997]: Process exited with status 0
2015-08-30T19:29:11.578546+00:00 heroku[slug-compiler]: Slug compilation finished
2015-08-30T19:29:11.578526+00:00 heroku[slug-compiler]: Slug compilation started
2015-08-30T19:29:11.531233+00:00 heroku[api]: Release v22 created by [email]
2015-08-30T19:29:11.531111+00:00 heroku[api]: Deploy 27d1a9c by [email]

ありがとう!

4

1 に答える 1