2017-08-14 244 views
2

我一直在嘗試讓我創建的EC2 Ubuntu 16.04服務器上運行的MoonMail程序(https://github.com/microapps/MoonMail/),但我似乎無法超越「sls功能部署」階段。MoonMail部署問題

我相信我已經設法部署資源,除了8個表格之外,由於我們對DynamoDB表的帳戶限制(我相信我認爲這應該不會有問題,因爲它似乎只能用於功能調用)。

當我運行「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 /變量/變量分別爲:

{ 
    "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": "[email protected]", 
    "defaultFromName": "myName" 
} 

在延時這裏預期?我使用的EC2服務器只是一個微型服務器,所以這可能是緩慢的原因。任何指導將不勝感激,因爲我有點卡住了。

回答

0

如果資源正確部署,我會嘗試部署一個函數來查看它是否工作。一次部署一組功能時無服務器效率不高(至少爲0.5