I publish data in a function Meteor.startup()in one of my server files, for example:
Meteor.publish("allImages", function() {
return ghI.find( {} );
});
This is normal when you first start the application. However, if I do my code editing and the application restarts, Meteor says: “Ignore duplication of publication” for all my publications. This may be an absolutely harmless warning, but does anyone know how to check and see if the publication exists? Or some other way to avoid this?
source
share