demandio / ember-prerender Goto Github PK
View Code? Open in Web Editor NEWMake your Ember.js web apps crawlable by rendering static HTML on the server.
License: MIT License
Make your Ember.js web apps crawlable by rendering static HTML on the server.
License: MIT License
Hello again :)
I want to add my plugin to prerender, but current config schema doesn't allow it.
After running sudo npm install -g ember-prerender, I get this in the npm messages:
> [email protected] install /home/cosmo/npm/lib/node_modules/ember-prerender/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)
make: Entering directory `/home/cosmo/npm/lib/node_modules/ember-prerender/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build'
CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory
#include <gssapi/gssapi.h>
^
compilation terminated.
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory `/home/cosmo/npm/lib/node_modules/ember-prerender/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.18.3-031803-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/cosmo/npm/lib/node_modules/ember-prerender/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
Running Linux Mint 17.1
I tried installing a .deb package named libkrb5-dev as suggested here: https://github.com/christkv/kerberos/issues/21 which seemed to fix the problem. Just wanted to post this in case someone else runs into the problem, and also as a suggestion to document the requirement of that package in your readme.
I'm having this error when trying to access http://localhost:3000
Renderer 0] Restarting rendering engine in 25000 seconds after it failed with error: Phantom encountered an error: TypeError: 'undefined' is not a function (evaluating 'this.window.console.error.bind(this.window.console)')
I cannot start the app.
I've cloned your repo and have a sample index.html file as you say in your config/default.js .
But when i try to run the server i constantly get
[Renderer 0] Restarting renderer, timed out while initializing
I've tried both phantom and jsdom renderer. Both have same problems.
Any ideas?
Hey guys!
I have used your awesome tool for generating static html of my app, however it's really static, I mean I tried to login using the app built with prerender and haven't got requests sent to back-end, no JS it seems :)
So, the questions states for production mode. How can I apply it?
Should I set nginx reverse-proxy for that? If so, can you help me with that or refer to somewhere where I can learn how to do that?
Regards and waiting for feedback!
May be restart prerender if 500 status code received?
Would be very interested to use this using the jsdom engine.
Getting this when running ember-prerenderer:
[Renderer 0] Running file:///usr/local/lib/node_modules/ember-prerender/lib/engines/jsdom.js:undefined:undefined<script> failed.
with this config:
module.exports = {
engine: 'jsdom',
baseUrl: 'http://localhost:4200/',
};
any ideas how to fix this?
Thanks!
I'm trying to use this to prerender hummingbird.me but I've run into two problems: (1) it gives a 504 error on all endpoints (which it seems to attempt to continue using that worker too) and I can't seem to get it to be more verbose and help me understand the problem and (2) it refuses to switch to JSDOM so I can debug it better (since I understand jsdom better than phantomjs)
I'm not sure if this might be related to my cluster
ing it to increase rendering thoroughput. Any help would be appreciated, I took a look but didn't find anything obviously wrong.
I'd really prefer to use this over something like prerender.io because (a) it's open-source completely and (b) it's deterministic, and I have a hatred of nondeterministic systems from my user scripting days ๐
In my app a have a special route (http://geometria.local:8000/prerender/
) for initial rendering for preloading data.
Before 2.2.0
i use baseUrl
option, but now it doesn't work.
applicationPage
appends to the baseUrl
for receiving HTML, and of course, http://geometria.local:8000/prerender/index.html
is wrong URL.
Can you add a new option for initial prerender url?
For example:
{
"baseUrl": "http://geometria.local:8000/",
"initialUrl": "prerender/",
"applicationPage": "index.html"
}
I'm using ember-cli-mirage in my app and I want to test the use of ember-prerender before we move to production environment with an external api. Is there any way you could see of making this compatible with it ? When I try using the service, I get the following message in the console:
Error while processing route: index Pretender intercepted GET /api/globalStorages but encountered an error: 'undefined' is not a function (evaluating 'newCollection[method].bind(newCollection)') TypeError: 'undefined' is not a function (evaluating 'newCollection[method].bind(newCollection)')
at http://localhost:4200/assets/vendor.js:164148
When a page timeout occurs (relatively rare), the event from the timed out page request has the potential to fire in the middle of the subsequent page request. This doesn't usually occur because new page requests will cancel the previous transition, but there is a small window of opportunity for it to happen between the time that node receives the request and when it tells the app to load the new route.
I haven't yet decided what the best way to handle this is - we can tell Ember to quit loading after a page times out, we can detach the event listener between requests, or we can restart phantom.
I would like to know either ember-prerender
supports the latest versions of ember 2.2.0
and npm 3.5.2
. I tried to run the example app and play with it but could start it because of various errors when running ember server
.
Are there any plans to present this as an addon for ember-cli?
The XContentReady Event might be worth to support. What do you think?
I want to move request to next upstream (proxy_next_upstream
) when the queue is reached (http_503
).
Phantom is down when JS error is thrown in application. Prerender send same http status code, but i don't want to move request to error page to next upstream.
I have a two ways:
Hey guys, I've setup ember-prerender in an nginx server and for some reason I get Curl Error : RECV_ERROR Recv failure: Connection reset by peer
Is there anything else I have to do from nginx side ? I manage to setup ember prerender locally.
Any chance you can npm unpublish ember-fastboot
? It's leading to some confusion where people are pulling this project in instead of ember-fastboot-server
Now prerender has bad restriction - it must be placed on a same server with a JS project.
Why we can't get html from baseURL
?
Would be very interested to use this using the jsdom engine.
Getting this when running ember-prerenderer
[Renderer 0] Running file:///usr/local/lib/node_modules/ember-prerender/lib/engines/jsdom.js:undefined:undefined<script> failed.
with this config
module.exports = {
engine: 'jsdom',
baseUrl: 'http://localhost:4200/',
};
any ideas how to fix this?
Thanks!
I'm planning to add an example Ember.js project and tutorial to get people started (likely in a separate repo).
Related to this, I've been thinking about the best way to add tests to the ember-prerender project but I haven't come up with any great ideas for how testing should work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.