【发布时间】:2018-08-24 11:08:12
【问题描述】:
我试图让 DM Dashboard 在我的 Ubuntu 16.04 上运行。你可以在这里找到它:https://github.com/dm-dashboard/dashboard
我已经安装了 Git、MongoDB、Node、Mean.io 和 Forever。我不熟悉所有东西,包括 Git。有两点不明白:
- 您可以在说明中找到:
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 在哪里。
- 要在浏览器中打开仪表板,说明如下:
打开浏览器并导航到
http://[path_to_where_you_deployed]:3000
“path_where_you_deployed”是什么意思?
我觉得解决方案很简单,但我就是不知道该怎么做。
非常感谢您的帮助!
【问题讨论】: