Running 'dpd keygen' throws an 'ENOENT' error on heroku

微笑、不失礼 提交于 2019-12-24 12:53:53

问题


I installed deployd on Heroku. When trying to access the dashboard, I get the following message:

Use dpd showkey to get your app's key.

But running:

heroku run dpd keygen

gives the following error:

{ [Error: ENOENT, open '.dpd/keys.json'] errno: 34, code: 'ENOENT', path: '.dpd/keys.json' }

Any help would be greatly appreciated. Thanks in advance.


回答1:


I solved this issue by adding a ".dpd" folder in my heroku root folder. To be able to commit, you also have to add the following file: ".add/.gitemptydir"

Then you have to create the key locally

dpd keygen

Then, do

git add *
git commit -am "added .dpd folder and key.json"
git push heroku master

You are then able to run

heroku run dpd showkey


来源:https://stackoverflow.com/questions/28121291/running-dpd-keygen-throws-an-enoent-error-on-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!