Answer the question
In order to leave comments, you need to log in
In AWS Elastic Beanstalk, how can I make the grunt command run when the application starts?
Hey!
When deploying an application to instances, how to make sure that
a) Grunt is installed if it is not installed
b) Run grunt
tasks Specify in package.json?
"scripts": {
"run": "grunt db:migrate"
}
Answer the question
In order to leave comments, you need to log in
You can also do this.
Set up the start command as "npm start" and then in package.json
"scripts": {
"start": "grunt db:migrate && grunt db:seed && node server.js"
}
If I understood correctly (did not work with Amazon), then perhaps this will help:
"scripts": {
"preinstall": "npm i -g grunt-cli && npm i grunt && grunt db:migrate"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question