1

我已经创建了我的 larvel 应用程序并尝试将它部署在 AWS lambda 上,所以我为此使用了 bref 和无服务器框架,但是网站链接给了我空白页面,当我回到 cloudwatch 查看日志时,这就是存在的cloudwatch 日志

这是我的 serverless.yml

    service: app

provider:
    name: aws
    region: us-east-1
    runtime: provided

plugins:
    - ./vendor/bref/bref

package:
  exclude:
    - node_modules/**
    - public/storage
    - resources/assets/**
    - storage/**
    - tests/**

functions:
    website:
        handler: public/index.php
        timeout: 28 # in seconds (API Gateway has a timeout of 29 seconds)
        layers:
            - ${bref:layer.php-73-fpm}
        events:
            -   http: 'ANY /'
            -   http: 'ANY /{proxy+}'
    artisan:
        handler: artisan
        timeout: 120 # in seconds
        layers:
            - ${bref:layer.php-73} # PHP
            - ${bref:layer.console} # The "console" layer

我不知道在哪里看,请有人帮助我

4

0 回答 0