AWS CodeDeploy AfterInstall script is being run from code-deploy agent dir

此生再无相见时 提交于 2019-12-05 01:03:50

Ok,

So I've found out, that codedeoloy-agent is running AfterInstall (and probably all the other steps) from the temporary directory created by the agent on deploy instance, so in my case I had to modify the bash script by cd-ing to the proper directory:

#!/bin/bash
cd /tmp/epub/server/
npm install
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!