node.js - getting webpack to work on openshift -
i'm trying deploy basic nodejs app openshift. i'm not sure how webpack though. build bundle.js file locally , deploy along index.html? tried putting bundle.js file in /public directory , pointing using relative path in index.html, bundle.js not found error. (it works when run locally.) step missing? must not use relative paths in openshift? find documentation openshift rather complicated. if out there can break down i'd appreciate it! i did miss step: need add directory in server.js so: self.initializeserver = function() { self.createroutes(); self.app = express.createserver(); self.app.configure(function() { self.app.use('/public', express.static(__dirname+'/public')); }); // add handlers app (from routes). (var r in self.routes) { self.app.get(r, self.routes[r]); } };