简体   繁体   English

禁用 heroku 上的节点模型文件夹缓存以减小 slug 大小?

[英]Disable node modeuls folder caching on heroku to reduce slug size?

I am trying to disable node modules on heroku to decrease the slug size for better bootup time, any idea where to use the following command?我正在尝试禁用 heroku 上的节点模块以减小 slug 大小以获得更好的启动时间,知道在哪里使用以下命令吗?

heroku config:set NODE_MODULES_CACHE=false heroku 配置:设置 NODE_MODULES_CACHE=false

Src

You need to install Heroku CLI.您需要安装 Heroku CLI。 And you will run that command on the terminal.您将在终端上运行该命令。

Useful links =>有用的链接=>

https://devcenter.heroku.com/articles/heroku-cli https://devcenter.heroku.com/articles/heroku-cli

https://devcenter.heroku.com/articles/config-vars#using-the-heroku-cli https://devcenter.heroku.com/articles/config-vars#using-the-heroku-cli


Also, there is a UI for managing configs.此外,还有一个用于管理配置的 UI。

https://devcenter.heroku.com/articles/config-vars#using-the-heroku-dashboard https://devcenter.heroku.com/articles/config-vars#using-the-heroku-dashboard

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM