Giter Site home page Giter Site logo

ember-prerender's People

Contributors

annahassel avatar jeffamcgee avatar maximivanov avatar shumkov avatar stanback avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ember-prerender's Issues

install fails on kerberos installation

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.

Error running ember-prerender

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)')

Timeout

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?

Production mode?

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!

Error using jsdom - jsdom.js:undefined:undefined<script> failed.

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!

504 constant timeouts?

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 clustering 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 ๐Ÿ˜‰

Config option for setting first rendered url

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"
}  

ember-cli-mirage compatibility

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

Possible race condition

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.

Current Ember and npm versions supported

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.

Addonify

Are there any plans to present this as an addon for ember-cli?

503 then phantom is down and 503 when queue reached

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:

  1. Send different http status codes
  2. Fix phantom JS error handling

Connection Reset from facebook

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.

Error using jsdom - jsdom.js:undefined:undefined<script> failed.

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!

Example Ember.js app

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.