Express pure back-end code, how to deploy to Tencent Cloud?

For pure express projects developed by

, using postman to test the corresponding requests is normal when running locally. I posted the code to Tencent Cloud"s server. After starting the project, I used postman to test the error.
screenshot of local postman test is as follows:

:

I think it may be that a certain step is missing when publishing on the server, but I just don"t know what the specific step is. Ask an experienced teacher to guide me

.
Jul.09,2021

refer to teacher wmli's nodejs Server deployment tutorial , and think that it may be that the security group policy of my server is not configured and the backend port is not open to the public, so that the local postman cannot test the interface. So I reconfigured the security group, completely released port 9000, tested postman again, and finally got the data.
Screenshot of server security group configuration:

:


excuse me, is the author there? I also encountered this problem. It can be accessed by Tencent Cloud, but not remotely on my computer. I took a look at the security group. I opened all the ports. In theory, this should not happen

.
Menu