1.0.2 • Published 3 years ago
@bref.sh/live v1.0.2
Edit code live on Lambda without leaving your editor.
How?
TODO
Installation
Install Bref Live:
composer require bref/liveInstall the Serverless Framework plugin:
serverless plugin install -n @bref.sh/liveThe command above is a shortcut. You can also install the plugin manually: install via NPM:
npm install --save-dev @bref.sh/liveand load the'@bref.sh/live'plugin inserverless.yml.
Set up Bref Live's S3 bucket by running:
serverless bref:live:installRun Bref Live at the top of your main file (index.php or similar):
require __DIR__.'/../vendor/bref/live/live.php';
Bref\live(__FILE__);
// Composer's autoloader MUST be loaded after Bref Live
// ...
require __DIR__.'/../vendor/autoload.php';Usage
Run Bref Live:
serverless bref:liveAfter a first sync, all file changes will be uploaded live to Lambda.
After using Bref Live, reset the environment to a clean state via:
serverless deploy