How to access Parse Client Key From terminal?

只谈情不闲聊 提交于 2019-12-12 04:26:19

问题


I have one Migrated Parse server right now with Bitnami. I have all the keys but I am not able to access it's ClientKey. I want to Implement that ClientKey at Android app for Push notification purpose. I tried to access files but I am not able to find it.

I checked with server dashboard as well not able to find. Can you tell me what is the location of file Which is containing ClientKey. Right now I am using Terminal for accessing the files. Can you tell me path or commands which is helpful in finding the ClientKey.


回答1:


as you probably know.. client keys are not required in parse server but if you still want to require client keys this needs to be done inside the parse server initialization.

so in order to set your client key you need to do the following:

  1. Go to your parse server index.js file
  2. Find the line where parse server is being initialized

var api = new ParseServer({

  1. Add your client key there and restart (or redeploy) your parse server

So your code should look like the following:



来源:https://stackoverflow.com/questions/39051047/how-to-access-parse-client-key-from-terminal

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