我一直试图让MoonMail程序(https://github.com/microapps/MoonMail/)在我设置的EC2 Ubuntu 16.04服务器上运行,但我似乎无法通过" sls功能部署"阶段。
我相信我已经设法部署资源,因为我们对DynamoDB表的帐户限制禁止了8个表(我相信我认为这暂时无关紧要,因为它似乎只会用于函数调用)。
当我运行" sls功能部署"命令,我收到以下警告:
Serverless: Deploying the specified functions in "dev" to the following regions: eu-west-1
Serverless: / Serverless: WARNING: This variable is not defined: esHost
Serverless: WARNING: This variable is not defined: esRegion
Serverless: - Serverless: WARNING: This variable is not defined: iotEndpoint
Serverless: | Serverless: WARNING: This variable is not defined: redisEndpointPort
Serverless: WARNING: This variable is not defined: redisEndpointAddress
Serverless: WARNING: This variable is not defined: redisPassword
Serverless: - Serverless: WARNING: This variable is not defined: iotEndpoint
Serverless: | Serverless: WARNING: This variable is not defined: unsubscribedCallbackUrl
Serverless: / ^C
我觉得这些在这一点上并不重要,但我不确定,也找不到任何其他答案。如果需要,我有权创建这些。
无论如何,此时的程序不会失败,但它似乎确实运行了很长时间(约1小时30分钟)。也许这是预料之中的,但它似乎比我预期的要长,所以假设出现了问题。除了我的_meta / _tmp文件夹在服务器上变得非常大(> 1GB)之外,我在我的AWS账户中看不到任何变化。
_meta / variables /中用于此阶段的变量是:
{
"defaultRegion": "eu-west-1",
"region": "eu-west-1",
"stage": "dev",
"defaultRCU": 2,
"defaultWCU": 2,
"sentEmailsRCU": 2,
"sendEmailsWCU": 2,
"scheduledAtIndexRCU": 2,
"scheduledAtIndexWCU": 2,
"scheduledCampaignsRCU": 2,
"scheduledCampaignsWCU": 2,
"clicksRCU": 2,
"clicksReportRCU": 2,
"clicksReportWCU": 2,
"clicksWCU": 2,
"opensRCU": 2,
"opensReportRCU": 2,
"opensReportWCU": 2,
"opensWCU": 2,
"recipientsRCU": 2,
"recipientsWCU": 2,
"apiHost": "mydomain.com",
"defaultEmailAddress": "me@mydomain.com",
"defaultFromName": "myName"
}
预计会有延迟时间吗?我使用的EC2服务器只是一个微型服务器,所以这可以解释缓慢。任何指导都会受到赞赏,因为我有点卡住了。
答案 0 :(得分:0)
如果资源部署正确,我会尝试部署单个函数以查看它是否有效。在一次部署一堆函数(至少版本为0.5
)