problem description
I have done a small react+webpack+express project and want to assign it to Sina Cloud"s SAE app. The code was uploaded through Sina git, and the deployment was successful, but the project just failed to start, resulting in the access to the domain name showing that the access application has been closed
,,5050,ip0.0.0.0 node_modulesgit.
,node_modules
related codes
/ / bin/www
var port = normalizePort(process.env.PORT || "5050");
var server = http.createServer(app);
server.listen(port,"0.0.0.0",function(){
console.log("Server on port:" + port)
});
//package.json
"scripts": {
"start": "node ./bin/www",
"build": "webpack --progress --watch"
},
what result do you expect? What is the error message actually seen?
expected result: Sina Cloud is successfully arranged, and the page can be accessed successfully with a second-level domain name
current result: shows that the access application is closed and the container starts up error