0

我使用 Laravel Vapor 在 AWS 上成功部署了一个应用程序。

  ==> Ensuring Storage Exists
  ==> Ensuring Cache Table Is Configured
  ==> Updating Function Configurations
  ==> Updating Function Code
  ==> Running Deployment Hooks
  ==> Ensuring Rest API Is Configured
  ==> Ensuring Custom Domains Exist
  ==> Ensuring DNS Records Exist
  ==> Ensuring Mail Is Configured
  ==> Ensuring Scheduled Tasks Are Configured
  ==> Ensuring Queues Are Configured
  ==> Updating Function Aliases To New Version

  Project deployed successfully. (1m26s)

=============== =================================================== 
  Deployment ID   Environment URL (Copied To Clipboard)              
 =============== =================================================== 
  38261           https://clean-kyiv-40wzwvz1sutk.vapor-farm-a1.com  
 =============== =================================================== 

但是,当我转到给定的链接https://clean-kyiv-40wzwvz1sutk.vapor-farm-a1.com时,我收到 502 错误 502

请求链接后,我可以在 Vapor 上Log的暂存环境选项卡中看到下一条消息。

一只忙碌的猫

我还应该检查什么来解决这个问题?

4

1 回答 1

1

如果由于某种原因您的代码运行时间超过默认的 10 秒,请尝试增加您的部署超时,您将从 aws Lambda 收到此错误


    environments:
        production:
            memory: 1024
            cli-memory: 512
            timeout: 120

在此处输入图像描述

于 2020-03-08T15:29:08.003 回答