mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 02:25:14 +00:00
841 B
841 B
Upgrading for Git source code
1. switch to the NocoBase project directory
cd my-nocobase-app
2. Pull the latest code
git pull
3. 删除旧依赖文件(非必须)
v0.10 进行了依赖的重大升级,如果 v0.9 升级 v0.10,需要删掉以下目录之后再升级
# Remove .umi cache
yarn rimraf -rf "./**/{.umi,.umi-production}"
# Delete compiled files
yarn rimraf -rf "./packages/*/*/{lib,esm,es,dist,node_modules}"
# Remove dependencies
yarn rimraf -rf node_modules
4. Update dependencies
yarn install
5. Execute the update command
yarn nocobase upgrade
6. Start NocoBase
development environment
yarn dev
Production environment
# compile
yarn build
# Start
yarn start # Not supported on Windows platforms yet