我的代码运行正常,但是当我尝试部署最新版本的代码时,ECS中的任务开始显示状态为“已停止”,并且出现此错误:
JSP:
<td><a href="${deleteUrl}" onclick="deleteConfirm()">Delete</a></td>
<script>
function deleteConfirm(){
var confirmation = confirm("Do you really want to delete this item
from the list?");
if(confirmation===false){
var message = "false";
return message;
}
}
</script>
Controller :
@GetMapping(Mappings.ITEMS)
public String booksList(Model model,HttpServletRequest request){
String message = request.getAttribute("message").toString();
if(message.equals("false")){
return "redirect:/home";
} else {
delete elemtn ..
...
}
}
在任何Docker文件中都没有任何更改,最新版本的代码在html和JS文件中包含一些基本更改。
另外,当尝试部署过去已正确部署的旧版本代码时,我仍然遇到相同的错误
前端docker文件:
starting container process caused "exec: \"http-server\": executable file not found in $PATH": unknown