I want to run a node.js application on elastic beanstalk. I have a client which gets build by a grunt job (jade, less, concat, etc.) I excluded this folder from git
I can localy run this by grunt buildClient
which is executed by grunt-cli
I added grunt
and grunt-cli
in my packages dev-dependencies
I want to run the grunt build before the application is launched, i already setup a configuration in .ebextensions/app.config
container_commands:
01_build_client:
command: grunt buildClient
I guess my cwd is /tmp/deployment/application/
but there is says Fatal error: Unable to find local grunt
. I guess grunt-cli is installed, but why is this error?
i also tried putting the grunt job in the postinstall
section of package.json
, but this doesnt work as well.
How do i build my grunt job on a EBS instance?