[英]How do I deploy a Node.js HTTP/2 application onto Google Compute Engine using a Docker image?
This used to work until a week ago, when the VM ran out of memory due to a missing finally in a try-catch.这一直有效,直到一周前,VM 用完 memory,因为 try-catch 最终丢失。 So, I tried to re-deploy with this fix to a new instance and now nothing is working.
因此,我尝试将此修复程序重新部署到新实例,但现在没有任何效果。
Here is the git repository of the server: https://gitlab.com/pumpkin-spice-latte/psl-server这是服务器的 git 存储库: https://gitlab.com/pumpkin-spice-latte/psl-server
I use the GCP console shell to build and push the image.我使用 GCP 控制台 shell 来构建和推送镜像。 It is on the VM with the container available and running.
它位于容器可用且正在运行的 VM 上。 However, when I try to connect to the external IP address, nothing is there.
但是,当我尝试连接到外部 IP 地址时,什么都没有。 https://35.203.160.44/
https://35.203.160.44/
Here is a screenshot of the docker ps
& docker images
: docker-ps-docker-images这是
docker ps
和docker images
的屏幕截图:docker -ps-docker-images
Here is a screenshot of the Firewall Rules
: firewall-rules这是
Firewall Rules
的屏幕截图: firewall-rules
Halp!!!!哈!!!! lol
哈哈
I cloned the repo locally and found a typo in the port:我在本地克隆了 repo,并在端口中发现了一个错字:
const PORT =
process.env.PORT || (process.env.NODE_ENV !== 'production' ? 8443 : 433); // should be 443
I think you meant 443 instead of 433.我认为您的意思是 443 而不是 433。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.