问题
I create an django based app in openshift. already I want to add node.js to it.But node.js needs open port for listening :
var http = require('http');
var server = http.createServer().listen(4000);
first I decide to install node.js from here but I got error:
You can only have one framework cartridge in your application 'djangoApp'.
I search every where but I don't get the answer :(
question : is this possible to add node.js to django app and use a port to connect to node.js ?
回答1:
You could potentially download and untar nodejs in your ~/app-root/data directory and configure your server.js to listen on a internal port.
回答2:
Why don't make a scaleable application? That way you could maybe run a django app on one gear and node.js on another gear
来源:https://stackoverflow.com/questions/20805949/can-openshift-give-me-a-open-port-for-nodejs-server-in-django-app