cachewerk / bref-laravel-bridge Goto Github PK
View Code? Open in Web Editor NEWAn advanced Laravel integration for Bref, including Octane support.
License: MIT License
An advanced Laravel integration for Bref, including Octane support.
License: MIT License
Let's focus on PostgreSQL, but why would ANYONE use something else.
PostgreSQL 9.6 upwards supports idle_in_transaction_session_timeout
.
SET SESSION idle_in_transaction_session_timeout = '5min';
https://stackoverflow.com/a/41818410
It's fairly straight forward:
https://github.com/laravel/vapor-core/blob/7ea7c0001795768a0fcb43d89524a7ac1cfef533/src/Runtime/Octane/Octane.php#L60-L125
We've merged the Bref v2 work we've been doing in this repository into the official repository. @georgeboot and I will be active maintainers of brefphp/laravel-bridge
.
We'll keep this cachewerk/bref-laravel-bridge
repository and Composer package as is, but will not further develop it.
For Bref v2 support, please see https://github.com/brefphp/laravel-bridge
When a queued jobs run longer and times out we should:
$job->failed()
is called (via #31)Currently, each SQS event will trigger a new Lambda instance. Should we instead keep something like Vapor's work
command running?
Looks like Vapor does a full deployment and sets VAPOR_MAINTENANCE_MODE
.
Let's see if we can set an environment variable without a full build, or re-use the last built package.
Can we use the GitHub deployments feature (GitHub Actions) to list all deployments?
Yesterday I had the pleasure of using this Laravel bridge for the first time, and the overall experience was very good. I only had a minor issue with the initial setup I got some chmod errors. The issue was regarding the logging which used the default Laravel settings. So I was curious if it could make sense to override the default logging setting to something more compatible with AWS such as stderr. I think this is something that is also done in the Briefs Laravel bridge, or maybe change the default path to /tmp instead of Laravel's default logging path. If you believe it is a good idea, I would like to make a PR.
Bref is doing something similar https://github.com/brefphp/laravel-bridge/blob/master/src/BrefServiceProvider.php#L58
Encrypting secrets in a during artifact building and loading them from a file might be a better approach for scale. Requires PHP 8.1. Hat tip @GrahamCampbell.
The secrets injector and the storage directories helper, both write to stdout. This however doesn't work in PHP-FTP and results in a crash.
bref-laravel-bridge/src/Secrets.php
Line 37 in 33c1fe0
Ideally we attempt to write to stderr, but wrapped in a try/catch block.
The package is quite opinionated, let's make it configurable.
ServeStaticAssets
optionalServeStaticAssets
assets configurableBREF_BINARY_RESPONSES
Log::shareContext()
configurableAdd full serverless.yml
example, including GitHub Actions workflow for deployment.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.