感谢!用了一段时间了,很不错!
请问eggjs 项目如何部署到云托管,麻烦某位神给个方案,或者Dockerfile配置?请问eggjs 项目如何部署到云托管,麻烦某位神给个方案,或者Dockerfile配置?
2022-07-21我要egg , mongodb
你希望微信云托管推出哪些「一键部署」新模板?微信云托管的新功能「一键部署」已支持通过 Node.js、PHP、Python、Java 和 Golang 等 5 种语言的 7 个示例模板,鼠标点一点,即可快速部署一个完整的后端服务,新用户也能轻松上手。 [图片] 有奖互动 你还希望云托管增加哪些语言和框架的快速部署模板?欢迎在下方评论区说出你需要的模板和使用场景。如果你对现有模板有其他优化建议,也欢迎畅所欲言,一起帮助云托管做得更好。我们将在参与者中挑选出突出贡献回答者送出微信周边礼物(款式随机)。 [图片] * 此活动长期有效 微信云托管,让业务 All on Serverless 微信云托管是微信团队推出的 Serverless 一站式后端服务全托管解决方案,具备 Serverless 数据库、自动扩缩容、低改造门槛等特性,还支持免鉴权、云调用等众多微信原生能力。相较于服务器,Serverless化的微信云托管是更适合微信生态应用的后端基础设施,更加的安全、灵活、高效、简单,不同规模的企业和开发者都可以轻松高效地完成业务互通,具体对比可参考文档。 教程:快速上手微信云托管 激励:微信云开发/云托管激励计划 技术支持:微信云托管1V1专家服务
2022-07-05兄台,是否可以分享下云托管部署egg项目的流程和细节
云托管部署eggjs服务,运行npm run start不停重复启动?最后部署失败走到这一步了之后,不停的重复启动,请问大神知道是什么原因吗? -----------服务lefan-node-service部署lefan-node-service-004----------- 2022-04-17 00:00:54 create_eks_virtual_service : succ, 2022-04-17 00:00:54 check_eks_virtual_service : succ, Readiness probe failed: dial tcp 10.0.192.4:80: connect: connection refused, [pod]:[Successfully assigned default/lefan-node-service-004-7697c69558-pd5bp to eklet-subnet-jws7nh7j; Starting pod sandbox eks-bju1u7x7; Sync endpoints; Pulling image "ccr.ccs.tencentyun.com/tcb_prd/initsidecar:2.0.0"; Successfully pulled image "ccr.ccs.tencentyun.com/tcb_prd/initsidecar:2.0.0" in 2.781056161s; Created container init; Started container init; Pulling image "ccr.ccs.tencentyun.com/tcb-100024839466-osvm/prod-3gen1fswbe8d5098_lefan-node-service:lefan-node-service-004-20220416235904"; Successfully pulled image "ccr.ccs.tencentyun.com/tcb-100024839466-osvm/prod-3gen1fswbe8d5098_lefan-node-service:lefan-node-service-004-20220416235904" in 13.85145302s; Created container lefan-node-service-004; Started container lefan-node-service-004; Pulling image "ccr.ccs.tencentyun.com/tcb_prd/openapi-agent:2.1.0"; Successfully pulled image "ccr.ccs.tencentyun.com/tcb_prd/openapi-agent:2.1.0" in 2.932170925s; Created container side; Started container side; Readiness probe failed: dial tcp 10.0.192.4:80: connect: connection refused; Container image "ccr.ccs.tencentyun.com/tcb-100024839466-osvm/prod-3gen1fswbe8d5098_lefan-node-service:lefan-node-service-004-20220416235904" already present on machine; ] *** [egg-scripts] Starting egg application at /usr/src/app [egg-scripts] Run node --no-deprecation --trace-warnings /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-lefan-node-server","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-lefan-node-server [egg-scripts] Save log file to /root/logs [egg-scripts] Wait Start: 1... [egg-scripts] Wait Start: 2... [egg-scripts] Wait Start: 3... [egg-scripts] Wait Start: 4... [egg-scripts] Wait Start: 5... [egg-scripts] Wait Start: 6... [egg-scripts] Wait Start: 7... [egg-scripts] Wait Start: 8... [egg-scripts] Wait Start: 9... [egg-scripts] Wait Start: 10... [egg-scripts] egg started on http://127.0.0.1:7001 [egg-scripts] Wait Start: 11... > lefan-node-server@1.0.0 start /usr/src/app > egg-scripts start --daemon --title=egg-server-lefan-node-server [egg-scripts] Starting egg application at /usr/src/app [egg-scripts] Run node --no-deprecation --trace-warnings /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-lefan-node-server","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-lefan-node-server [egg-scripts] Save log file to /root/logs [egg-scripts] Wait Start: 1... [egg-scripts] Wait Start: 2... [egg-scripts] Wait Start: 3... [egg-scripts] Wait Start: 4... [egg-scripts] Wait Start: 5... [egg-scripts] Wait Start: 6... [egg-scripts] Wait Start: 7... [egg-scripts] Wait Start: 8... [egg-scripts] Wait Start: 9... [egg-scripts] Wait Start: 10... [egg-scripts] Wait Start: 11... [egg-scripts] Wait Start: 12... [egg-scripts] Wait Start: 13... [egg-scripts] Wait Start: 14... [egg-scripts] Wait Start: 15... [egg-scripts] Wait Start: 16... [egg-scripts] Wait Start: 17... [egg-scripts] Wait Start: 18... [egg-scripts] egg started on http://127.0.0.1:7001 > lefan-node-server@1.0.0 start /usr/src/app > egg-scripts start --daemon --title=egg-server-lefan-node-server [egg-scripts] Starting egg application at /usr/src/app [egg-scripts] Run node --no-deprecation --trace-warnings /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-lefan-node-server","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-lefan-node-server [egg-scripts] Save log file to /root/logs [egg-scripts] Wait Start: 1... [egg-scripts] Wait Start: 2... [egg-scripts] Wait Start: 3... [egg-scripts] Wait Start: 4... [egg-scripts] Wait Start: 5... [egg-scripts] Wait Start: 6... [egg-scripts] Wait Start: 7... [egg-scripts] Wait Start: 8... [egg-scripts] Wait Start: 9... [egg-scripts] Wait Start: 10... [egg-scripts] Wait Start: 11... [egg-scripts] egg started on http://127.0.0.1:7001 > lefan-node-server@1.0.0 start /usr/src/app > egg-scripts start --daemon --title=egg-server-lefan-node-server [egg-scripts] Starting egg application at /usr/src/app [egg-scripts] Run node --no-deprecation --trace-warnings /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-lefan-node-server","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-lefan-node-server [egg-scripts] Save log file to /root/logs [egg-scripts] Wait Start: 1... [egg-scripts] Wait Start: 2... [egg-scripts] Wait Start: 3... [egg-scripts] Wait Start: 4... [egg-scripts] Wait Start: 5... [egg-scripts] Wait Start: 6... [egg-scripts] Wait Start: 7... [egg-scripts] Wait Start: 8... [egg-scripts] Wait Start: 9... [egg-scripts] Wait Start: 10... [egg-scripts] Wait Start: 11... [egg-scripts] Wait Start: 12... [egg-scripts] egg started on http://127.0.0.1:7001 > lefan-node-server@1.0.0 start /usr/src/app > egg-scripts start --daemon --title=egg-server-lefan-node-server [egg-scripts] Starting egg application at /usr/src/app [egg-scripts] Run node --no-deprecation --trace-warnings /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-lefan-node-server","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-lefan-node-server [egg-scripts] Save log file to /root/logs [egg-scripts] Wait Start: 1... [egg-scripts] Wait Start: 2... [egg-scripts] Wait Start: 3... [egg-scripts] Wait Start: 4... [egg-scripts] Wait Start: 5... [egg-scripts] Wait Start: 6... [egg-scripts] Wait Start: 7... [egg-scripts] Wait Start: 8... [egg-scripts] Wait Start: 9... [egg-scripts] Wait Start: 10... [egg-scripts] Wait Start: 14... [egg-scripts] egg started on http://127.0.0.1:7001
2022-05-07