这个问题可能以前就被问过了。我即将部署一个安装了pm2的NodeJS10.16应用程序到生产环境中。下面是关于nodejs部署不能做的article: Not removing console.log statements
While developing an app, we use console.log statements to test things out. But sometimes we forget to remove these log statements in production, which consume the CPU time and waste the
我使用sam deploy命令将lambda部署到AWS。有时,我会得到这个错误,An error occurred (ValidationError) when calling the CreateChangeSet operation: Stack:arn:aws:cloudformation:ap-southeast-2:xxxx:stack/xxxx/xxxx is in ROLLBACK_COMPLETE state and can not be updated.,我知道在以前的部署中会发生故障。我可以手动删除AWS克隆形成控制台中的堆栈,然后重试命令。但是我想知道是否有办法强制命令