Openshift node.js successful deployment, but “Application is not available”

前端 未结 1 1704
自闭症患者
自闭症患者 2021-01-20 18:47

I\'m having a problem getting a node.js app to run on Openshift.

I\'ve set up my openshift project to pull from a git repo.

My server.listen cal

1条回答
  •  天涯浪人
    2021-01-20 19:19

    go to
    Applications > Services,
    click on your service,
    click Actions > Edit YAML,
    In ports sections,
    change port and targetPort to the port that your nodejs application is running on,
    in my case it was on port 8000,
    so i gave like this

    port: 8000
    protocol: TCP
    targetPort: 8000
    

    0 讨论(0)
提交回复
热议问题