-
Notifications
You must be signed in to change notification settings - Fork 8
How to Upgrade Leanote
wiselike edited this page Jan 16, 2022
·
1 revision
可以使用git pull得到leanote上最新版本, 如果你已修改了leanote, 可以先fetch(推荐使用fetch的方式)最新到本地, 再与本地的合并. 如:
git fetch origin master:tmp # 得到远程最新版本, 别名为tmp
git diff tmp # 查看tmp与本地的不同
git merge tmp # 合并到本地
如果不能用git方式同步源码, 请下载 https://github.com/leanote/leanote
- 请先备份leanote之前的目录, 以防万一
- 将下载好的替换之前的leanote
- 将之前版本下的
- /public/upload/ 目录
- /files/ 目录
- /conf/app.conf 移到新版下相应位置.
重启Leanote.
如果运行有问题
- 如 "cannot find package "github.com/PuerkitoBio/goquery" in any of:..." 类似的信息, 原因是Leanote增加了新的依赖, 此时可以使用go get命令下载新包, 如下载"github.com/PuerkitoBio/goquery"
go get github.com/PuerkitoBio/goquery
- 如 "cannot find package "golang.org/x/crypto/bcrypt" in any of:" 类似的信息, 原因是Leanote增加了新的依赖, 此时可以使用以下命令下载新包。 如下载"github.com/golang/crypto"
cd $GOPATH/src/golang.org/x/
git clone https://github.com/golang/crypto.git
或下载依赖包与源码全集: https://github.com/leanote/leanote-all
请下载最新的leanote二进制版, 将之前版本下的
- /public/upload/ 目录
- /files/ 目录
- /conf/app.conf
移到新版下相应位置.
在新版下运行leanote.
- Home-of-leanote-official
- How-to-develop-leanote-如何开发leanote
- How-to-install-leanote-on-Ubuntu?
- How-to-Upgrade-Leanote
- Install-Mongodb
- leanote-api-en
- leanote-api
- leanote-binary-installation-on-Mac-and-Linux-(En)
- leanote-binary-installation-on-Windows-(En)
- leanote-blog-theme-api_en
- leanote-blog-theme-api
- leanote-develop-distribution-installation-tutorial
- Leanote-QA-English
- Leanote-source-installation-on-Mac-and-Linux-(En)
- leanote-source-installation-on-Windows-(En)
- Leanote-source-leanote源码导读
- Leanote-Synchronization
- Leanote-二进制版详细安装教程----Mac-and-Linux
- Leanote-二进制版详细安装教程----Windows
- Leanote开发版在Cubieboard上详细安装教程
- Leanote-源码版详细安装教程----Mac-and-Linux
- Leanote-源码版详细安装教程----Windows
- QA
- Translating
- 客户端图片,-附件下载与上传
- 客户端图片缓存处理