我正在为 Angular 应用程序制作 CICD 管道,但在代码部署阶段遇到错误,并且代码存在于 github 中。我尝试了所有方法,但这个错误仍然没有解决。
Error code
ScriptFailed
Script name
scripts/stop_nginx.sh
Message
Script at specified location: scripts/stop_nginx.sh run as user root failed with exit code 127
Logs
LifecycleEvent - BeforeInstall
Script - scripts/stop_nginx.sh
[stderr]bash: line 1: /opt/codedeploy-agent/deployment-root/7c3950a2-5da6-45dc-a9cf-cb7e70ed622c/d-H64Z8P727/deployment-archive/scripts/stop_nginx.sh: cannot execute: required file not found
您必须在项目根目录中创建一个appspec.yml文件
示例 appspec.yml 文件位于此处
版本:0.0 操作系统:Linux 文件: