tqc / codedeploy-scripts

AWS CodeDeploy lifecycle scripts using ES6 to deploy a node app to EC2
MIT License
4 stars 1 forks source link

codedeploy-scripts not found during deployment #5

Closed elliotrock closed 7 years ago

elliotrock commented 7 years ago

On deployment the codedeploy-scripts module is not found.

Do I need to add this to my package.json ?

tqc commented 7 years ago

Of course, same as any node module. You'll also need to make sure that npm install has run before creating the codedeploy package; running npm on the server won't work with the default setup, though in theory you could wrap deployment.js in another script that calls npm install first.