You can use the following dotcloud.yml file:
www: type: nodejs ports: mything: tcp
Then, in your Node.js application, you can bind an HTTP server to port 8080 and an arbitrary TCP server to a port containing the $PORT_MYTHING environment variable. Then run dotcloud info on your service; in the ports section you will see something like this:
- name: mything url: tcp:
From now on, if you connect to myapp-johndoe.dotcloud.com on port 12345 , you really connect to $PORT_MYTHING in your application.
I hope this makes sense and that this is what you were looking for!
source share