mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 02:08:36 +00:00
Add support of 'labs' RUNNING_ENV in cloud_platform
The labs env can be anything starting by 'labs', such as 'labs-logistics', 'labs-finance', ... * At install, s3/swift is set as default storage * However, unlike prod/integration, the storage is not forced to be an object storage * Redis is required * When the storage is set on s3/swift, then the bucket name is mandatory (otherwise, there is no place where to create the files...) The redis prefix regex match is relaxed: anything starting by a project name, then '-odoo-', then any combination of letters, digits, and dashes is accepted (so a prefix my-project9-odoo-labs-web3 is valid).
This commit is contained in:
@@ -31,6 +31,7 @@ class CloudPlatform(models.AbstractModel):
|
||||
configs = {
|
||||
'prod': PlatformConfig(filestore=FilestoreKind.swift),
|
||||
'integration': PlatformConfig(filestore=FilestoreKind.swift),
|
||||
'labs': PlatformConfig(filestore=FilestoreKind.swift),
|
||||
'test': PlatformConfig(filestore=FilestoreKind.db),
|
||||
'dev': PlatformConfig(filestore=FilestoreKind.db),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user