开始通知:
** You've set up some data subscriptions with Meteor.publish()
如何禁用?
答案 0 :(得分:1)
我假设你收到了这个错误消息:
** You've set up some data subscriptions with Meteor.publish(), but
** you still have autopublish turned on. Because autopublish is still
** on, your Meteor.publish() calls won't have much effect. All data
** will still be sent to all clients.
**
** Turn off autopublish by removing the autopublish package:
**
** $ meteor remove autopublish
**
** .. and make sure you have Meteor.publish() and Meteor.subscribe() calls
** for each collection that you want clients to see.
要让通知消失,只需执行要求您执行的操作并运行:
meteor remove autopublish
autopublish
?Autopublish是一个用于快速原型设计的软件包。它将MongoDB中的所有集合发送到客户端以便于使用。来自文档:
将所有服务器集合发布到客户端。此软件包对于应用程序原型设计非常有用,无需担心哪些客户端可以访问某些数据,但应在应用程序需要限制客户端查看哪些数据时立即将其删除。
在将您的应用程序放到互联网上之前,您需要关闭它并使用出版物和订阅来保护,过滤和管理您的数据流