简体   繁体   English

Heroku没有运行吞咽?

[英]Heroku not running gulp?

I just posted my app onto heroku but for some reason the app is crashing because gulp is not found. 我刚刚将应用程序发布到heroku上,但由于某种原因,该应用程序崩溃了,因为未找到gulp。 Gulp runs fine locally but not on heroku. Gulp在本地运行良好,但在Heroku上运行不佳。 Heroku log Heroku日志

package.json package.json

Let me know if any other files are essential 让我知道是否还有其他文件

Heroku defaults to skipping devDependencies. Heroku默认情况下跳过devDependencies。 Either move gulp to production dependencies or run this: $ heroku config:set NPM_CONFIG_PRODUCTION=false for Heroku to use dev configs. 将gulp移至生产依赖项或运行以下命令: $ heroku config:set NPM_CONFIG_PRODUCTION=false以便Heroku使用开发配置。

More info here: https://devcenter.heroku.com/articles/nodejs-support#customizing-the-build-process 此处的更多信息: https : //devcenter.heroku.com/articles/nodejs-support#customizing-the-build-process

Side note: the "heroku-production" is simply a task name within the gulpfile. 旁注:“ heroku生产”只是gulpfile中的任务名称。 You don't seem to have a task with that name. 您似乎没有使用该名称的任务。

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

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