Skip to content

Update Project to Current Openshift config #760

@brianfeister

Description

@brianfeister

Correct me if I'm misunderstanding something here. This project assumes in config/environment/production.js that all ports are defined by process.env... variables, however, on the Openshift PaaS, the port used by socketio is not :8080 as declared by this scaffold, rather it is :8000.

Logging out from Openshift, I get the following:

====== process.env.OPENSHIFT_INTERNAL_PORT = undefined ======
====== process.env.OPENSHIFT_NODEJS_PORT = 8080 ======
====== process.env.PORT = undefined ======
Express server listening on 8080, in production 

This article about the supposed correct config for socketio is interesting, though it may also be outdated: https://coderwall.com/p/pgk00a/socket-io-and-openshift-websockets. It seems that :8000 is the current correct port per the Openshift's blog on the topic: https://blog.openshift.com/paas-websockets/.

So, if I'm processing this all correctly, we need a "split" configuration for the ports that the app listens on, since the default node process listens on :8080 and we need socketio to be listening to :8000.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions