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.app访问有问题,请教怎么部署到VPS #4

Open
yumin9822 opened this issue Nov 14, 2022 · 2 comments
Open

最近vercel.app访问有问题,请教怎么部署到VPS #4

yumin9822 opened this issue Nov 14, 2022 · 2 comments

Comments

@yumin9822
Copy link

请教下怎么部署到自己的VPS上,谢谢

@FredyVia
Copy link

FredyVia commented Feb 6, 2023

腾讯云函数部署

  1. git clone https://github.com/fredyvia/proxy-provider-converter/ && cd proxy-provider-converter && npm install && npm run build 目前不影响api部分使用的问题,部署后访问:https://***.cd.apigw.tencentcs.com/release/没问题,去掉最后一个斜杠就404了,解决了。
  2. 腾讯云函数控制台,先从头开始创建nodejs的运行环境(不要用nextjs模板,nextjs的模板所使用的nodejs版本为12,有点问题),具体为:新建->从头开始->Web函数->你想要取的函数名称->选择靠近你的地域->nodejs环境16.13->时区:shanghai->本地上传刚才的文件夹(这里要先构建也就是npm run build完成了再上传)->启用日志投递(在测试完没问题后记得关闭,不仅要在云函数里面关掉对该日志的引用还要在日志云服务里面删除该日志主题,因为这个是日志存储是计费的)->内存可以改小点(128M够了)->其他默认->确定

@ggtony233
Copy link

请问能否将构建完成的内容用nginx部署?
npm run build之后的文件夹是public吗?

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

3 participants