我已经创建了自己的解析服务器和解析仪表板实例。解析服务器工作正常,因为我可以通过curl远程读写条目。
当我在浏览器http://192.168.2.28:4040/apps中打开仪表板时,它会询问我所配置的用户名和密码。成功登录后,我看到错误消息:You don't have any apps。但是,解析仪表板应该会看到一个名为testerdb的应用程序正在运行。我相信我有错配置,但我不知道这可能是什么。
为了启动我的解析服务器,我正在运行这个bash脚本:
APPID="appid123456"
MASTERKEY="masterkey654321"
DBURI="mongodb://127.0.0.1:27017/testerdb?ssl=false"
APPNAME="testerdb"
parse-server --verbose --appId ${APPID} --masterKey ${MASTERKEY} --appName ${APPNAME} --databaseURI ${DBURI}同样,我能够通过curl成功地读写解析应用程序。
要启动仪表板,我正在运行:
DASH=/lib/node_modules/parse-dashboard/Parse-Dashboard/parse-dashboard-config.json
parse-dashboard --config ${DASH} --allowInsecureHTTP=1allowInsecureHTTP不会在生产中使用。我只是简单地使用它来帮助排除故障。
这是我的解析仪表板-config.json:
{
"apps": [{
"serverURL": "http://localhost:1337/parse",
"appId": "appid123456",
"masterKey": "masterkey654321",
"appName": "testerdb"
}],
"users": [{
"user":"jftuga",
"pass":"xyz789",
"apps": [{"appId1": "appid123456"}]
}]
}这两个bash脚本都以parse用户的身份运行。在浏览器中,没有javascript控制台消息。在我的parse-server.info日志文件(用于解析服务器)中,似乎没有任何解析仪表板进程正在访问该应用程序。我也是访问仪表板从同一局域网上的另一台计算机。

发布于 2016-09-25 12:05:39
上述配置存在2问题。
第1期
我的parse-dashboard-config.json位于/lib/node_modules/parse-dashboard/Parse-Dashboard,但实际上需要在/lib/node_modules/parse-dashboard/Parse-Dashboard/public中。注意结尾处的/public。
第2期
这句话:
"serverURL": "http://localhost:1337/parse",需要:
"serverURL": "http://192.168.1.28:1337/parse",因为这个URL将被浏览器的Javascript代码访问。因此,它需要是外部可访问的IP地址。
发布于 2022-06-01 21:25:30
您的解析仪表板无法从为其设置的配置文件中获取正确的数据。如果可能的话,我建议你这样做
import 'dotenv/config';
const express = require('express');
const ParseDashboard = require('parse-dashboard');
const dashboard = new ParseDashboard({
"apps": [
{
"serverURL": process.env.SERVER_URL,
"appId": process.env.APP_ID,
"masterKey": process.env.MASTER_KEY,
"appName": process.env.APPNAME,
}
]
});
const app = express();
// make the Parse Dashboard available at /dashboard
app.use('/dashboard', dashboard);
const httpServer = require('http').createServer(app);
httpServer.listen(4040);然后从这样的脚本开始
纱线解析仪表板
或
npm运行解析仪表板
https://stackoverflow.com/questions/39668187
复制相似问题