Meteor CLI + Heroku -- 在 CLI 中使用标志进行部署

Meteor CLI + Heroku -- Deploying with a Flag in the CLI

我正在测试一个旧的包,它不会成功 运行 除非我用以下命令启动 Meteor:

meteor --allow-incompatible-update

我打算将此应用程序部署到 Heroku。我还使用构建包来完成此操作:https://github.com/jordansissel/heroku-buildpack-meteor

如何在 CLI 上传递 flag/setting 的同时将应用程序部署到 Heroku?

您需要分叉构建包并编辑此行:https://github.com/jordansissel/heroku-buildpack-meteor/blob/master/bin/compile_meteor#L64

meteor build ../build --allow-incompatible-update --directory 2>&1 | indent

然后您可以使用这个分支作为您的构建包。