thtg88 / bref-laravel-container-demo
该包已被放弃,不再维护。没有建议的替代包。
一个Bref项目的演示,其src文件夹将包含Laravel应用
v0.1.1
2021-03-12 15:06 UTC
Requires
- php: ^8.0
- bref/bref: ^1.0
- bref/laravel-bridge: ^1.0
README
本项目是一个容器化应用,将在AWS Lambda上运行Bref。目标Laravel应用需要复制到src
文件夹。
要求
- PHP 8.0
- Composer
- Serverless (
npm i -g serverless
) - AWS CLI已配置好配置文件(
aws configure
)。请参阅这篇博客文章了解如何为使用此栈准备您的AWS环境。
使用
composer create-project thtg88/bref-laravel-container-demo
然后,您可以在src
文件夹内复制您的应用代码,或者通过git克隆到其中。
部署
这将使用您CLI配置文件中配置的AWS凭证(aws configure
设置它们)创建一个CloudFormation堆栈。请参阅这篇博客文章了解如何为使用Serverless准备您的AWS环境。
./deploy.sh
开发
git clone git@github.com:thtg88/bref-laravel-container-demo.git composer install