Tag: meteor

这个平台不支持代理

我试图做(我不知道它叫什么,热负载?热重新加载?)meteor般的实时加载数据,但通过使用node.js而不是meteor。 和我使用的客户端(=浏览器,我还没有尝试过) ddp模块和ddp-reactive-server ,以及服务器。 server.js是这样的: var DDPServer = require('ddp-server-reactive'); var server = new DDPServer(); var todoList = server.publish('todolist'); 之后,我运行服务器使用命令node server.js –harmony_proxies (通知我已经使用的国旗)这就是我得到: [aseds@localhost ~]$ node server.js –harmony_proxies /home/aseds/Desktop/projeh/css-goodness/node_modules/harmony-reflect/reflect.js:2049 throw new Error("proxies not supported on this platform. On v8/node/iojs, make sure to pass the –harmony_proxies flag"); ^ Error: proxies not supported on this platform. On v8/node/iojs, […]

如何从易趣通知中获取数据

我正在跟随meteor厨师的教程。 我正在使用它来创build一个meteor的路线/ API,将接收来自易趣的通知。 但是我遇到的问题是,我从eBay收到的request.body是一个空的对象。 我可以看到它发送给我的头文件,只要它有soapaction:'http // developer.ebay.com / notification / AskSellerQuestion''就可以了。 (我正在testing一个问题,所以它似乎工作) 在eBay Notifications的请求中,我是否可以find包含通知信息的XML? 还是我以错误的方式去解决? 我发现eBay的文档不是很有帮助。 我的代码被要求: 这是我的api.js API = { authentication: function( apiKey ) { // Authenticate with the app's API Key var getKey = Meteor.settings.auroraAPIKey; if ( apiKey === getKey ) { return true; } else { return false; } }, connection: function( […]

meteor.js的package.json文件?

有没有一个简单的npm风格的方式来构buildmeteor.js的package.json文件? 或者类似的东西,所以我可以上传文件到github没有所有的软件包和有人可以很容易地运行一个命令,重新下载所有附加的必需软件包? 我下载了一些meteor文件,发现.meteor文件夹不在那里,所以我无法查看软件包文件甚至手动执行。 这是怎么处理meteor?

如何删除X框架选项响应头,允许应用程序iframed

我原来的问题是…我得到的Facebook对话框错误: An error ocurred. Please try again later. An error ocurred. Please try again later. 解决这个问题唯一的办法是安装铬扩展… 忽略X-Frame标题( https://chrome.google.com/webstore/detail/ignore-x-frame-headers/gleekbfjekiniecknbkamfmkohkpodhe ) 所以我怀疑这是由于浏览器的内容政策.. testing:铬和safari 操作系统: mac osx 10.10 服务器: localhost / nodejs 我尝试通过安装browser-policy包,然后安装来解决这个问题… 服务器/ policy.js Meteor.startup(function () { BrowserPolicy.framing.allowAll(); BrowserPolicy.content.allowInlineScripts(); BrowserPolicy.content.allowEval(); BrowserPolicy.content.allowInlineStyles(); BrowserPolicy.content.allowDataUrlForAll(); BrowserPolicy.content.allowSameOriginForAll(); }); BrowserPolicy.framing.allowAll(); BrowserPolicy.content.allowInlineScripts(); BrowserPolicy.content.allowEval(); BrowserPolicy.content.allowInlineStyles(); BrowserPolicy.content.allowDataUrlForAll(); BrowserPolicy.content.allowSameOriginForAll(); 但是我只是想出另一个问题:由于违反内容安全政策,所有外部资源(字体,JavaScript的Facebook的SDK等)无法加载.. 概要 我只需要放弃X框架选项响应头,允许通过Facebook iframed,要么使用浏览器策略或不… …当然,不要强迫用户安装任何扩展名… 任何帮助将不胜感激…谢谢你,

meteor初始文件

我在WebStorm中创build了一个新的Meteor项目,它生成了hello.html文件,它是应用程序的默认页面,以及hello.js文件。 现在的事情是,我不希望这些文件被命名为“你好”。 我如何更改Meteor的默认/初始文件? 我在项目中search了这些文件的引用,但是我没有find任何人,这意味着它们没有被定义为硬编码。 任何帮助将深深感激! 编辑 :我刚刚发现,我可以命名最初的文件,当我在WebStorm中创build一个新的Meteor项目。 我宁愿改变它在当前的项目,而不是创build一个新的。 这可能吗?

在WebStorm 11中创build一个angularmeteor项目

我使用支持angularmeteor的WebStorm 11。 但是,当我创build一个新的Meteor项目时,它使用Blaze。 我怎样才能改变它使用Angular而不是Blaze? 任何帮助将深深感激!

铁路由器使用Meteor.call抛出的动作writeHead不是一个函数

我试图写一个从服务器返回到客户端响应的缓冲区。 因此,我定义了一个在action函数上运行获取文件的path: Router.route('/download/:blabla', { name: 'download', action: function () { var that = this.response; Meteor.call('downloadFile', blabla, function (err, result) { // error check etc. var headers = { 'Content-type' : 'application/octet-stream', 'Content-Disposition' : 'attachment; filename=' + fileName }; that.writeHead(200, headers); that.end(result); } } }); 这抛出: 传递调用“downloadFile”结果的exception:TypeError:that.writeHead不是函数 没有Metoer.call它的作品… 我使用nodejsstream来获取服务器端的缓冲区function,它的工作原理。 提前致谢

gmail发送api失败,错误代码为400meteor

我想在我的meteor应用程序中使用gmail api发送邮件, Error in calendar insert: Error: failed [400] { "error": { "errors": [ { "domain": "global", "reason": "invalidArgument", "message": "'raw' RFC822 payload message string or uploading message via /upload/* URL required" } ], "code": 400, "message": "'raw' RFC822 payload message string or uploading message via /upload/* URL required" } } 我试了下面, "sendGmail": function(str) { […]

meteorFS.Collection访问服务器上的集合

我正在使用FS.Collection在服务器上传短video文件,然后作为电子邮件中的附件发送。 插入服务器上的集合工作,我可以访问客户端上的集合项目,也可以直接使用文件的pathUrl – localhost:3000/cfs/files/videos/{{item_id}} 我不知道如何访问服务器上的收集。 我想以下面的forms发送带有附件的电子邮件,并需要访问服务器上文件和文件名的path。 我试过了: Email.send({ to: to, from: from, subject: subject, text: text, attachments:[{fileName:"video.mp4", filePath:"/cfs/files/videos/{{item_id}}"}] }); 它显示电子邮件中的附件video播放器,但有错误消息,所以我假设我没有正确访问文件。 我的Collection.js很简单: var videoStore = new FS.Store.GridFS("videos"); Videos = new FS.Collection("videos", { stores: [videoStore] });

计划的cron作业在OS启动时运行meteor

我安排了cron作业,用于在Debian 7和Centous 6.5上启动系统时使用meteor开发的项目。 而且一切都很好,直到不明原因坠毁。 Cron包含运行用meteor开发的Rocket.Chat项目的命令。 当我通过SSH连接运行meteor命令,Rocket.chat运行,直到ssh连接打开。 最后,我想知道如何在系统启动时运行meteor或node.js项目,因为该项目不会崩溃,直到系统closures或杀死cron。