脚本宝典收集整理的这篇文章主要介绍了基于go+vue实现的golang每日新闻浏览与检索平台,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
gonews是基于go+vue
实现的golang每日新闻浏览与检索平台
gIT clone https://github.COM/gocn/news /data/news
go get -u github.com/mikemintang/gonews
nohup gonews -d /data/news > /data/log/gonews.log 2>&1
nohup gonews -a api -p 8017 > /data/log/gonews.log 2>&1 &
cd $GOPATH/src/github.com/mikemintang/gonews/web
npm install
npm run build
server {
listen 80;
server_name gonews.idoubi.cc;
index index.htML index.htm index.php;
root /data/go/src/mikemintang/gonews/web;
location /api {
rewrite ^.+api/?(.*)$ /$1 break;
Proxy_pass http://127.0.0.1:8017;
}
}
#!/bin/sh
cd /data/news
git pull origin master
nohup gonews -d /data/news/ > /data/log/gonews.log 2>&1
crontab -e
*/10 * * * * /bin/sh /data/shell/cache_news.sh
欢迎提交Pull Request
以上是脚本宝典为你收集整理的基于go+vue实现的golang每日新闻浏览与检索平台全部内容,希望文章能够帮你解决基于go+vue实现的golang每日新闻浏览与检索平台所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。