node.js - Deploying Deployd to Heroku Dashboard Key -


i have deployd application trying deploy heroku. have been able deploy application , able hit via it's url. trying access dashboard. in order access dashboard, requires have key generated server. understand there 2 ways this.

the first method described here generates key locally , pushes heroku. feel method unsecure in sense keys published vcs.

the second method use procfile , list dpd keygen , dpd showkey. reason method not work me. see commands executed in heroku logs doesn't print out keys , cannot see executing heroku run dpd showkey.

i figure out why listing commands in procfile not work. please find file listed out below:

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

my log file follows:

2015-08-30t19:18:25.012474+00:00 heroku[api]: starting process command `dpd showkey` [email] 2015-08-30t19:18:28.196008+00:00 heroku[run.5122]: starting process 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 starting 2015-08-30t19:18:31.023033+00:00 heroku[run.5122]: state changed complete 2015-08-30t19:18:31.012416+00:00 heroku[run.5122]: process exited status 0 2015-08-30t19:19:36.935285+00:00 heroku[api]: starting process command `dpd keygen` [email] 2015-08-30t19:19:39.794903+00:00 heroku[run.3022]: starting process 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 starting 2015-08-30t19:19:42.827722+00:00 heroku[run.3022]: state changed complete 2015-08-30t19:19:42.813695+00:00 heroku[run.3022]: process exited status 0 2015-08-30t19:19:51.655953+00:00 heroku[api]: starting process command `dpd showkey` [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 command `dpd showkey` 2015-08-30t19:19:55.293222+00:00 heroku[run.9997]: state changed starting 2015-08-30t19:19:58.397128+00:00 heroku[run.9997]: state changed complete 2015-08-30t19:19:58.384885+00:00 heroku[run.9997]: process exited 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 [email] 2015-08-30t19:29:11.531111+00:00 heroku[api]: deploy 27d1a9c [email] 

thanks!

i able solve using npm's postinstall:

"scripts": {     "postinstall": "dpd keygen && dpd showkey",     "start": "node server" }, 

the key gets output in log when pushing heroku repo, e.g.

remote: > dpd keygen && dpd showkey remote: remote:
created key 1f89d0aa66b50fdd... remote: copy key use in remote dashboard remote: remote:
1f89d0aa66b50fdd12c383bbdfcd2a9db7034c516e1353e11b3080faa5598a7944c91bca582b5e2c41f6164c9141e17edc5a994cf14c8d5d0aada7b8b1b4ac3d738b793c8597c8588898748729ef1abf9a24c86f11dfbdf19a152523f9633b83366a604db450ebea11f77e54ba7419d4d85af8f9a5b8fd079be382a08a32a5914dff3910e9c11770eff43d8ds0779bae0dd039c13b425b0a706bcaee5ca9c38afe2801495808b552f120daa50d244a7c8d80d06a126beb596b77ff47947b97ceecd9f63dd786b67a0bc6a765f27463cc6274e76804136eea6ae54bcd5b5d15537cf3da1c9b2cf3c6676327b95cbdd277ec1367274271814ab95e2d72b2a09ebc


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -