更新我的解析仪表板后,我丢失了" logs列"正如您所见:
我刚刚升级了我的parse-dashboard和我的解析服务器:
仪表板:?。?。? (package.json https://pastebin.com/KRFaxJha)
parse-server:2.4.0
节点:7.10.0
这是我的解析仪表板配置文件:
{
"apps": [
{
"appId": "APP_ID",
"masterKey": "MASTER_KEY",
"restKey": "REST_KEY",
"serverURL": "http://WWW_WEBSITE:8081/parse",
"appName":"APP_NAME"
}
],
"users": [
{
"user": "ADMIN",
"pass": "ADMINXXXXXXX"
}
]
}
这是我的云代码测试功能:
Parse.Cloud.define("hello", function(request, response) {
response.success("Hello world!");
});
当我用卷毛打电话时,我有:
curl -X POST -H "X-Parse-Application-Id: APP_ID" -H "X-Parse-REST-API-Key: REST_KEY" -H "Content-Type: application/json" -d '{ }' http://WWW_WEBSITE:8081/parse/functions/hello
{"result":"Hello world!"}
结果是正确的,在解析服务器上我有跟踪:
verbose: REQUEST for [POST] /parse/functions/hello: {} method=POST, url=/parse/functions/hello, user-agent=curl/7.29.0, host=WWW_WEBSITE:8081, accept=*/*, x-parse-application-id=APPID, x-parse-rest-api-key=REST_KEY, content-type=application/json, content-length=3,
info: Ran cloud function hello for user undefined with:
Input: {}
Result: "Hello world!" functionName=hello, , user=undefined
verbose: RESPONSE from [POST] /parse/functions/hello: {
"response": {
"result": "Hello world!"
}
} result=Hello world!
我看过这个话题: https://github.com/parse-community/parse-dashboard/issues/281 我试图在我的解析服务器和仪表板上设置详细的导出变量
我想我错过了一些配置,但我无法找到哪一个,
非常感谢,
美人蕉
答案 0 :(得分:0)
错误的仪表板版本我不知道为什么:
npm install -g parse-dashboard修复它并安装好的仪表板版本