Joined August 2013
·

Ryan Wheale

Boulder, CO
·
·

Thanks for the thorough response! Heroku seems to be a favorite in the node community, but it is my understanding that you can't work with web sockets on Heroku. Any experience there?

Also, with more "classical" hosting you often aren't allowed SSH access (unless you pay more) which is required for "installing node modules" or anything else which requires the command line. Being that NPM and the command line is such an integral part of working with node, I was curious as to how this worked with a hosting provider. The npm/git integration seems to solve many of these issues.

OpenShift really seems to be a neat thing and appears to be exactly what I was looking for - SSH, node, and MongoDB. I really appreciate all the great info!

Do you mind providing some insight into your infrastructure (hosting mainly)? Can you suggest some providers, maybe give some tips on things to look for (eg. installing node modules) as well as your opinions on services you may have tried. Thanks for the great info, and I agree that nodejs + mongodb is the next thing.

Can't you just add @-ms-viewport{ width: auto!important } in your stylesheet? Earlier IE only recognized the CSS viewport (ignoring the meta tag altogether)... so you should already have an @-ms-viewport tag in your styles. If you want to stick with javascript, could also make sure that width is actually set to "device-width" before moving forward - an extra layer of compatability:

var viewport = document.querySelector("meta[name=viewport]");
if( viewport && /device-width/.test(viewport[0].getAttribute("content")) ) {
    // write the style tag here
}
Achievements
59 Karma
0 Total ProTip Views