【发布时间】:2013-02-11 00:39:24
【问题描述】:
我正在破解我的第一个 Meteor 应用程序,并且在尝试连接到 S3 时打开了一个兔子洞。我已经使用陨石安装了 awssum,但似乎我需要安装同名的 Node.js 模块才能真正完成这些示例。我最终会将我的应用程序部署到 Heroku,并且我希望能够将我的依赖项与我的代码一起打包。谷歌搜索一下,我找到了很多方法来做到这一点,我想知道哪种方法接近最佳实践:
- 在 /public (https://github.com/possibilities/meteor-node-modules) 中安装我需要的包(似乎有风险)
- 破解我正在使用的 buildpack (https://github.com/oortcloud/heroku-buildpack-meteorite) 以获取我需要的节点包
- 将我的项目部署为 Node 模块本身,从而允许依赖 (https://github.com/matb33/heroku-meteor-npm)
- 打包您的项目,解压,然后安装到创建的 node_modules 目录 (Recommended way to use node.js modules with meteor)
我应该走哪条路?
【问题讨论】:
-
在 Meteor 的人提出 NPM 包的互操作性之前,我推荐chrislunsford's hack。我在 Heroku 上的 2 个 Meteor 应用程序中使用它,它就像一个魅力!
标签: meteor