更新部署到Heroku的Meteor应用程序的Node版本 [英] Update Node version for Meteor app deployed to Heroku
问题描述
。我想在Heroku上更新流星版本到1.2.1和节点版本到4.8.4。我已经在
packages.json
中设置了节点版本,但它在部署后没有更新。 如何能我更新Heroku上的流星和节点?我尝试了下面的命令:
heroku run meteor update --release 1.2.1 -a myappname
但它会抛出以下错误:
bash:meteor:command not found
任何帮助都将不胜感激。
在此先感谢!
将我的应用程序的节点版本更新为 4.8.4
,我在本地机器上将Meteor版本更新为 1.5.1
,修复了依赖性问题,并将代码推送到解决了问题的Heroku应用程序中。 / p>
我使用以下命令将Meteor版本更新为 1.5.1
,它将节点包版本更新为 4.8.4
以及:
meteor update --release 1.5.1
将代码提交并推送到Heroku后,有几个 babel-runtime
和 bcrypt
崩溃。我执行了下列命令来解决这些问题:
meteor npm install --save babel-runtime
meteor npm install --save bcrypt
meteor update iron:middleware-stack
。
将这些更新推送到Heroku解决了我的问题。
I have a Meteor application deployed to Heroku. To prevent the Denial of Service (DoS) vulnerability, Heroku suggested updating the Node.js version
for my application. I want to update the meteor version to 1.2.1 and node version to 4.8.4 on Heroku. I have set the node version in packages.json
as well but it was not updated after deployment.
How can I update meteor and node on Heroku? I tried the following command:
heroku run meteor update --release 1.2.1 -a myappname
but it throws the following error:
bash: meteor: command not found
Any help would be much appreciated. Thanks in advance!
To update my application's node version to 4.8.4
, I updated Meteor version to 1.5.1
on my local machine, fixed the dependencies issues and pushed code to the Heroku application which solved the issue.
I used the following command to update Meteor version to 1.5.1
which updated the node package version to 4.8.4
as well:
meteor update --release 1.5.1
After committing and pushing code to Heroku, there were a few babel-runtime
and bcrypt
crashes. I executed the following commands to fix those issues:
meteor npm install --save babel-runtime
meteor npm install --save bcrypt
meteor update iron:middleware-stack
.
Pushing these updates to Heroku solved my issue.
这篇关于更新部署到Heroku的Meteor应用程序的Node版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!