如何从终端访问解析客户端密钥? [英] How to access Parse Client Key From terminal?

查看:110
本文介绍了如何从终端访问解析客户端密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在使用Bitnami拥有一台迁移的解析服务器.我拥有所有密钥,但无法访问它的ClientKey.我想在Android应用程序中实现该ClientKey以进行推送通知.我试图访问文件,但找不到.

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.

我也检查了服务器仪表板,但也找不到.您能告诉我包含ClientKey的文件的位置是什么.现在,我正在使用Terminal来访问文件.您能告诉我有助于找到ClientKey的路径或命令吗?

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.

推荐答案

..解析服务器中不需要客户端密钥,但是如果您仍然需要客户端密钥,则需要在解析服务器初始化内完成.

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. 转到解析服务器 index.js 文件
  2. 找到初始化解析服务器的行

var api = new ParseServer({

var api = new ParseServer({

  1. 在此处添加您的客户端密钥,然后重新启动(或重新部署)您的解析服务器

因此您的代码应如下所示:

So your code should look like the following:

这篇关于如何从终端访问解析客户端密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆