Comments (5)
You need to pass a different port into the phantomjs-node bridge as well. Since that uses a socket server to drive phantomjs remotely from the node process.
https://github.com/sgentle/phantomjs-node/blob/master/phantom.js#L78
Let me know if you get it working.
from prerender.
Can you give me example. I used environment ($PORT
) variable to assign port to nodejs. How can i pass the option with command line ?
from prerender.
Code will have to be added to pass a different port to the phantomjs-node bridge.
You'll have to change the code to pass port into the phantomjs-node bridge on your own here:
https://github.com/collectiveip/prerender/blob/master/lib/prerender.js#L26
Add
port: process.env.PHANTOMJS_PORT
12300
is the default phantomjs port so you can change it to something other than that for each instance you run.
I'll try to add this soon. Or feel free to make a pull request if you get it working :)
from prerender.
Now you can! I have made a pull request to make it work!
from prerender.
Fixed in #37
from prerender.
Related Issues (20)
- Question: is `TIMEOUT_STATUS_CODE` a stable configuration variable
- Retrying connection to Chrome... HOT 2
- Restarting Chrome at almostly every request HOT 2
- Chrome died immediately after restart... stopping Prerender HOT 1
- Unable to fetch Useragent header on Prerender Server
- How to do this with static site?
- Error on running prerender locally HOT 4
- Not able to set default mobile user-agent in prerender
- Cacheing of SPA JS and CSS bundles HOT 1
- Timed out waiting for Chrome connection after Restarting Chrome HOT 16
- Prerender stopped working with ReactJS
- Sending of Custom Headers
- Update package version to include #748
- HTTP code returned 200, even if the page is a 404
- Is hosting prerender locally affects the pre-existed caching with prerender.io service? HOT 1
- Using PRERENDER_TOKEN
- Crawling does not work properly when using own deployment of prerender HOT 8
- Retrying Connection...undefined HOT 9
- doesnt work!!!!!! HOT 2
- blockResources not working? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prerender.