【问题标题】:Problems with installing web based Dashboard (DM Dashboard) with Git, MongoDB, Node, mean.io, Forever使用 Git、MongoDB、Node、mean.io、Forever 安装基于 Web 的仪表板(DM 仪表板)的问题
【发布时间】:2018-08-24 11:08:12
【问题描述】:

我试图让 DM Dashboard 在我的 Ubuntu 16.04 上运行。你可以在这里找到它:https://github.com/dm-dashboard/dashboard

我已经安装了 Git、MongoDB、Node、Mean.io 和 Forever。我不熟悉所有东西,包括 Git。有两点不明白:

  1. 您可以在说明中找到:
Before we start the server, we will need to configure it for your environment

配置

Change to the checkout folder
Open config/env/development.json
Update the "db" property to point to your mongo DB
Save and close the file

打开 development.js 时,发现“db”的部分说:

module.exports = {
  db: 'mongodb://' + (process.env.DB_PORT_27017_TCP_ADDR || 'localhost') + '/dashboard',
  debug: true,
  //  aggregate: 'whatever that is not false, because boolean false value turns aggregation off', //false
  aggregate: false,
  mongoose: {
    debug: false
},

现在我要改成什么?我不知道我的 MongoDB 在哪里。

  1. 要在浏览器中打开仪表板,说明如下:

打开浏览器并导航到

http://[path_to_where_you_deployed]:3000

“path_where_you_deployed”是什么意思?

我觉得解决方案很简单,但我就是不知道该怎么做。

非常感谢您的帮助!

【问题讨论】:

    标签: mongodb forever


    【解决方案1】:

    db 应该是你的 Mongo DB URI

    [path_to_where_you_deployed] 我们将在您启动此服务器的位置,例如 127.0.0.1 如果您在本地运行以进行开发...或 heroku url 如果您在那里部署

    【讨论】:

    • 在哪里可以找到我的 Mongo DB URI?我刚刚通过终端下载了 MongoDB,如下所示:link
    • 如果您在该机器上本地运行 mongod,那么它们当前在 db 中的内容将完美运行,因为 URI 将是 mongodb://localhost:27017/dashboard
    • 谢谢,至少我的浏览器现在找到了一些东西,甚至在标题中显示了“DM Dashboard”。但这仍然是空白的一面,应该有一个创建新帐户的链接。但这是另一个问题,所以谢谢你帮助我! :)
    猜你喜欢
    • 2014-12-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-24
    相关资源
    最近更新 更多