Reputation: 75
I'm having a problem indexing my static html page done with meteor.js
I've added the spiderable package, phantomjs to my server $PATH. The spiderable package adds the <meta name="fragment" content="!">
If i do a curl
i dont get anything returned in the body tags.
site is hosted on stackful.io : Ubuntu 12.04 64-bit with Nginx
Webmaster Tools returns indexed pages (from head) but does not detect any structured data on the site
Upvotes: 2
Views: 746
Reputation: 2333
Spiderable and nginx don't like to play nicely for some reason having to do with the websocket connection requested. I ended up using the settings object in Meteor to connect directly to my app via a custom port. See Using the Meteor.settings feature for more information. Hopefully this helps!
Upvotes: 1
Reputation: 5217
Spiderable is particularly sensitive to the way your published subscriptions work. Internally, spiderable will wait until all subscriptions are in their 'ready' state, but there's also a timeout to make sure it doesn't just sit there forever.
From what you are describing, it sounds like one of your subscriptions is not returning 'ready' before the timeout expires.
I had the same problem when I was making meteor-roles. To fix this, look through all of your publish functions and make sure that they all either return a cursor, call this.ready, this.error, or this.stop.
Upvotes: 0