Tuesday, 14 March 2017

How do I change directory to deployment-archive to run gulp?

I am using aws code deploy to deploy a nodejs server to an ec2 instance.

aws code deploy agent downloads bundle to following path:

/opt/codedeploy-agent/deployment-root/deployment-group-id/deployment-id/deployment-archive/gulpfile.js

which means my gulpfile.js reside at

/opt/codedeploy-agent/deployment-root/deployment-group-id/deployment-id/deployment-archive/gulpfile.js

however any bash command I run will run from

/opt/codedeploy-agent

How do I change directory to dynamically generated

deployment-group-id/deployment-id/deployment-archive

and also install node modules from package.json?



via ishandutta2007

No comments:

Post a Comment