代码拉取完成,页面将自动刷新
同步操作将从 梁行知/essay2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Essay - Simple but not simple blog system
Please install MongoDB and Node.js, then start the database.
# yourDBpath is your DB folder(anywhere)
$ sudo mongod --dbpath yourDBpath
$ git clone https://github.com/wmui/essay
$ cd essay
$ yarn
$ npm run dev # Visit http://127.0.0.1:3025
Tips: Do not use localhost
visit the project, because of cookie is domain only support 127.0.0.1
.
Global config file is server/config/global.config.js
, the default configuration like this
const isPro = process.env.NODE_ENV === "production";
module.exports = {
mongodb: {
host: "127.0.0.1",
database: "essay",
port: 27017,
user: "",
pass: ""
},
app: {
domain: isPro ? "https://www.86886.wang" : "http://127.0.0.1:3025"
},
admin: {
username: "admin",
nickname: "wmui",
password: "123456",
description: "前端工程师",
email: "qq22337383@gmail.com"
},
jwt: {
expiresIn: 365 * 86400,
secret: "essay" // Secret is very important, please modify it.
},
// If you want to support auto deploy,please config Server IP, repo and path.
pm2: {
host: "116.196.17.78",
repo: "git@github.com:wmui/blog.git",
path: "/root/blog"
}
};
Default login username: admin
Default login password: 123456
If you want to deploy on production environment, you can just do like this
$ git clone https://github.com/wmui/essay
$ cd essay
$ yarn
$ npm run build
$ pm2 start npm --name "essay" -- start
如果需要自动化部署,可以参考这里Node 项目自动化部署
QQ 群:4882 68810
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。