mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-13 00:42:08 +08:00
Add Upgrade Command
- Add Upgrade Package handler -- Add base package handler service with re-usable api handle packages -- Re-usable service to extract and apply upgrade packages -- Add upgrade settings to configs - Add Base command -- Add abstract class with common input processing logic - Add Upgrade Command -- Add re-usable UpgradeHandler with api for applying upgrades -- Add command to call upgrade handler -- Add service feedback -- Call clear cache on upgrade command - Add Upgrade step by step execution -- Add process step interface and executor --- add common logging to each step execution --- add debug logging for each step execution --- allow running processes step by step --- allow configuring steps independently -- Move upgrade handler and upgrade command to use step executor -- Add upgrade log -- Improve upgrade command output
This commit is contained in:
parent
dc27646e31
commit
d22cfbbf8f
22 changed files with 1610 additions and 4 deletions
|
@ -4,7 +4,7 @@ monolog:
|
|||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: debug
|
||||
channels: ["!event"]
|
||||
channels: ["!event", "!upgrade"]
|
||||
# uncomment to get logging in your browser
|
||||
# you may have to allow bigger header sizes in your Web server configuration
|
||||
#firephp:
|
||||
|
@ -16,4 +16,4 @@ monolog:
|
|||
console:
|
||||
type: console
|
||||
process_psr_3_messages: false
|
||||
channels: ["!event", "!doctrine", "!console"]
|
||||
channels: ["!event", "!doctrine", "!console", "!upgrade"]
|
||||
|
|
8
config/packages/monolog.yaml
Normal file
8
config/packages/monolog.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
monolog:
|
||||
channels: ['upgrade']
|
||||
handlers:
|
||||
upgrade:
|
||||
type: stream
|
||||
path: "%kernel.project_dir%/logs/upgrade.log"
|
||||
level: debug
|
||||
channels: ["upgrade"]
|
|
@ -7,6 +7,7 @@ monolog:
|
|||
excluded_http_codes: [404, 405]
|
||||
# Prevents memory leaks
|
||||
buffer_size: 50
|
||||
channels: ["!upgrade"]
|
||||
nested:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
|
@ -14,7 +15,7 @@ monolog:
|
|||
console:
|
||||
type: console
|
||||
process_psr_3_messages: false
|
||||
channels: ["!event", "!doctrine"]
|
||||
channels: ["!event", "!doctrine", "!upgrade"]
|
||||
deprecation:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"
|
||||
|
|
|
@ -5,7 +5,7 @@ monolog:
|
|||
action_level: error
|
||||
handler: nested
|
||||
excluded_http_codes: [404, 405]
|
||||
channels: ["!event"]
|
||||
channels: ["!event", "!upgrade"]
|
||||
nested:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue