【发布时间】:2020-07-21 13:45:17
【问题描述】:
每个人。我刚开始使用 MongoDB 进行 Strapi。 我在strapi.io上关注了gudie,但仍然失败。
这里是 package.json
"dependencies": {
"strapi": "3.0.0-beta.19.5",
"strapi-admin": "3.0.0-beta.19.5",
"strapi-utils": "3.0.0-beta.19.5",
"strapi-plugin-content-type-builder": "3.0.0-beta.19.5",
"strapi-plugin-content-manager": "3.0.0-beta.19.5",
"strapi-plugin-users-permissions": "3.0.0-beta.19.5",
"strapi-plugin-email": "3.0.0-beta.19.5",
"strapi-plugin-upload": "3.0.0-beta.19.5",
"strapi-connector-mongoose": "3.0.0-beta.19.5"
},
这是 development/database.json
{
"defaultConnection": "default",
"connections": {
"default": {
"connector": "mongoose",
"settings": {
"client": "mongo",
"database": "nuclear-legacy",
"host": "127.0.0.1",
"srv": false,
"port": 27017,
"username": "",
"password": ""
},
"options": {
"authenticationDatabase": ""
}
}
}
}
但是服务器不能正确启动,它会无限重启一次又一次。
[2020-04-09T01:25:54.088Z] 调试 HEAD \admin (45 ms) 200
[2020-04-09T01:25:54.094Z] info ⏳ 打开管理面板...
[2020-04-09T01:25:55.942Z] 信息文件已更改:F:\James\nuclear_program\backend\debug.log
[2020-04-09T01:25:55.948Z] info 服务器正在重启
在 mongodb compass 中,“nuclear-legacy”数据库中出现了一些集合。 但是服务器无法正确启动。我认为问题在于服务器无法创建管理员用户。
非常卡。我非常仔细地按照指南进行操作,但无法找到解决方案。
我也想知道如何部署 React + Strapi 项目。 Strapi 有自己的后端和前端。 React 是项目的前端。
我应该为前端和后端创建两个网址吗? 谁能帮帮我?
【问题讨论】:
标签: reactjs mongodb mongoose devops strapi