Node.js, prerender.io, phantomjs, Windows 8 install
This is an update to my previous post: http://www.philipholly.com/post/64211668657/node-js-iisnode-prerender-io-phantom-phantomjs
Current hardware/software:
Git Extensions (including git bash)
Since I got a new work laptop, I needed to resetup my local websites.
This are the steps I went through to get a local instance of prerender.io up and running locally in a node.js server. Much easier than last time! I didn't need to install phantom.js server first. That simplified a lot. And maybe because I have Visual Studio 2013 instead of 2012 installed things just worked. I don't know.
Download node.js for windows
Run node.js windows installer
Let it add node to your path
Open Git Bash and navigate to the directory where you want to host your prerender server
run Git clone https://github.com/collectiveip/prerender.git. Instructions are here: https://prerender.io/server
I got the error: Npm install failed: pyhton 2.6 or 2.7 is required to build
Download python 2.7.6 Windows Installer: https://www.python.org/download/
Open a new git bash window and navigate to your prerender project
This time it should work - I did get one warning C4506 but it doesn’t' look like it's a showstopper
That's it! This time I didn't have to install phantomjs server separately. Maybe last time I didn't but I didn't know that? I don't know.
Follow the instructions here: https://prerender.io/server to test if it worked
Not bad at all! Now I need to get prerender.io to run from IIS instead of node - so I need to install iisnode - which is now managed by Azure by the way!. We'll see how it goes.