Skip to content

Commit 7f9d1c5

Browse files
author
fengr06
committed
update README.md
1 parent 9791086 commit 7f9d1c5

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,22 +153,34 @@ killall -9 searchd
153153
/usr/local/coreseek/bin/indexer -c /etc/sphinx.conf --all --rotate &&
154154
/usr/local/coreseek/bin/searchd -c /etc/sphinx.conf
155155
time=`date "+%Y-%m-%d %H:%M:%S "`
156-
echo "${time} sphinx restart success" >> /usr/share/nginx/html/crontab/sphinx.log
156+
echo "${time} sphinx restart success" >> /usr/share/nginx/html/blog/crontab/sphinx.log
157157
158158
```
159159
然后定时任务中每小时执行一次该脚本:
160160

161161
```
162162
crontab -e
163-
0 */1 * * * /usr/share/nginx/html/crontab/indexer.sh
163+
0 */1 * * * /usr/share/nginx/html/blog/crontab/indexer.sh
164164
service crond restart
165165
166166
```
167167
配置完毕,搜索功能已经可以使用
168168

169169

170170

171-
171+
## 关于后台的开发
172+
后台使用react + antdesign开发
173+
进行二次开发的话需要安装node.js
174+
这里我们推荐yarn(众所周知的原因)
175+
```
176+
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
177+
yum install yarn
178+
yarn -v
179+
yarn install
180+
npm run watch //实时调试
181+
npm run dev //开发打包
182+
npm run prod //上线打包
183+
```
172184

173185

174186

0 commit comments

Comments
 (0)