File tree Expand file tree Collapse file tree 2 files changed +28
-17
lines changed
Expand file tree Collapse file tree 2 files changed +28
-17
lines changed Original file line number Diff line number Diff line change 55use Bref \LaravelBridge \Console \Commands \BrefTinkerCommand ;
66use Bref \LaravelBridge \Queue \QueueHandler ;
77
8+ use Bref \Monolog \CloudWatchFormatter ;
89use Illuminate \Console \Events \ScheduledTaskStarting ;
910
1011use Illuminate \Log \LogManager ;
@@ -168,6 +169,10 @@ protected function fixDefaultConfiguration()
168169 Config::set ('logging.default ' , 'stderr ' );
169170 }
170171
172+ if (Config::get ('logging.channels.stderr.formatter ' ) === null ) {
173+ Config::set ('logging.channels.stderr.formatter ' , CloudWatchFormatter::class);
174+ }
175+
171176 if (Config::get ('logging.channels.emergency.path ' ) === storage_path ('logs/laravel.log ' )) {
172177 Config::set ('logging.channels.emergency ' , Config::get ('logging.channels.stderr ' ));
173178 }
Original file line number Diff line number Diff line change 11service : laravel
22
3- # Set your team ID if you are using Bref Cloud
3+ # Set your team ID if you are using Bref Cloud (https://bref.sh/cloud)
44# bref:
55# team: my-team-id
66
@@ -11,23 +11,13 @@ provider:
1111 # Environment variables
1212 environment :
1313 APP_ENV : production # Or use ${sls:stage} if you want the environment to match the stage
14+ # Replace with a secret variable: https://bref.sh/docs/environment/variables#secrets
15+ APP_KEY : ' base64:aqIOr0nFlPj0RtsUR4MTtIu4EBWohrOr9qcw0xVZE6c='
16+ APP_DEBUG : false
1417 SESSION_DRIVER : cookie # Change to database if you have set up a database
15-
16- package :
17- # Files and directories to exclude from deployment
18- patterns :
19- - ' !node_modules/**'
20- - ' !public/storage'
21- - ' !resources/assets/**'
22- - ' !resources/css/**'
23- - ' !resources/images/**'
24- - ' !resources/js/**'
25- - ' !storage/**'
26- - ' !tests/**'
27- - ' !database/*.sqlite'
28- # Exclude assets except for the manifest file
29- - ' !public/build/**'
30- - ' public/build/manifest.json'
18+ # Read more about logging: https://bref.sh/docs/environment/logs
19+ LOG_CHANNEL : stderr
20+ LOG_STDERR_FORMATTER : Bref\Monolog\CloudWatchFormatter
3121
3222functions :
3323
@@ -50,6 +40,22 @@ functions:
5040 # rate: rate(1 minute)
5141 # input: '"schedule:run"'
5242
43+ package :
44+ # Files and directories to exclude from deployment
45+ patterns :
46+ - ' !node_modules/**'
47+ - ' !public/storage'
48+ - ' !resources/assets/**'
49+ - ' !resources/css/**'
50+ - ' !resources/images/**'
51+ - ' !resources/js/**'
52+ - ' !storage/**'
53+ - ' !tests/**'
54+ - ' !database/*.sqlite'
55+ # Exclude assets except for the manifest file
56+ - ' !public/build/**'
57+ - ' public/build/manifest.json'
58+
5359plugins :
5460 # We need to include the Bref plugin
5561 - ./vendor/bref/bref
You can’t perform that action at this time.
0 commit comments