We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
麻烦问一下作者,这个打包部署需要去服务器吗?我看本地npm run build 之后出来的dist不对,然后参考了百度的结果,说是去服务器上面打包,因为本地指向依赖包问题 参考文献:https://www.cnblogs.com/xianxiaobo/p/12162309.html
The text was updated successfully, but these errors were encountered:
@wojiaoerdandan 这个问题很有价值。
常规部署应用的做法:
git pull
yarn install
yarn build
yarn start
但由于我实际环境的生产机的性能不足以跑 “构建” 这一步(会死机),所以 “构建” 这一步被我转移到 GitHub Actions 进行:
GitHub Actions 在收到 push tags / release 事件后:
push tags
release
deploy.sh
生产机 deploy.sh 脚本做的事情:
dist
可以看出:
build
node_modules
yarn install --frozen-lockfile --production
Sorry, something went wrong.
No branches or pull requests
麻烦问一下作者,这个打包部署需要去服务器吗?我看本地npm run build 之后出来的dist不对,然后参考了百度的结果,说是去服务器上面打包,因为本地指向依赖包问题
参考文献:https://www.cnblogs.com/xianxiaobo/p/12162309.html
The text was updated successfully, but these errors were encountered: