【发布时间】:2014-06-20 02:11:17
【问题描述】:
我想在弹性 beanstalk 上运行 node.js 应用程序。我有一个客户端,它是通过一项繁重的工作(jade、less、concat 等)构建的。我从 git 中排除了这个文件夹
我可以通过grunt buildClient 在本地运行它,由grunt-cli 执行
我在我的包中添加了grunt 和grunt-cli dev-dependencies
我想在应用程序启动之前运行 grunt 构建,我已经在 .ebextensions/app.config 中设置了配置
container_commands:
01_build_client:
command: grunt buildClient
我猜我的密码是/tmp/deployment/application/
但有人说Fatal error: Unable to find local grunt。我猜grunt-cli已经安装了,但是为什么会出现这个错误?
我还尝试将 grunt 作业放在 package.json 的 postinstall 部分,但这也不起作用。
如何在 EBS 实例上构建我的繁重作业?
【问题讨论】:
-
找到了这个要点:gist.github.com/adamalex/7189405 但导致同样的错误
标签: node.js gruntjs amazon-elastic-beanstalk