Skip to content
New issue

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

尝试在vercel部署,但部署成功后白屏 #8

Open
autumn-moon-py opened this issue Oct 25, 2024 · 4 comments
Open

尝试在vercel部署,但部署成功后白屏 #8

autumn-moon-py opened this issue Oct 25, 2024 · 4 comments

Comments

@autumn-moon-py
Copy link

希望出一下适配的部署文档,vercel的国区dns部分地区很流畅
https://vercel.com

@masquevil
Copy link
Owner

你是怎么部署的?可以参考这个文件 .github/workflows/deploy.yml
把里面 run 的脚本全部执行一边就行了。
你是想搭个镜像站点吗

@autumn-moon-py
Copy link
Author

vercel部署流程跟github action不一样,我也试过在自己的linux服务器部署,但一运行就把我那核心吃满了,网站都503了

@masquevil
Copy link
Owner

一个纯前端项目为什么会把服务器吃满……
我看了一下 readme 里我写了啊,是这么部署的吗

yarn install

sh ./shell/copy.sh

yarn build # dev 改成 build

# 目录是 dist,如果有 serve 的话可以直接 serve dist

@autumn-moon-py
Copy link
Author

我不折腾云端了,我把项目用HbuilderX打包app出来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants