fix: new dev volumes and service files

fix: new parser version (4) that will fix data layout (applications goes to /applications, services goes to /services)
This commit is contained in:
Andras Bacsai
2024-09-30 14:15:22 +02:00
parent 68f541ded3
commit 987b90ead2
5 changed files with 27 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ class Service extends BaseModel
{
use HasFactory, SoftDeletes;
private static $parserVersion = '3';
private static $parserVersion = '4';
protected $guarded = [];
@@ -1105,7 +1105,7 @@ class Service extends BaseModel
public function parse(bool $isNew = false): Collection
{
if ($this->compose_parsing_version === '3') {
if ((int) $this->compose_parsing_version >= 3) {
return newParser($this);
} elseif ($this->docker_compose_raw) {
return parseDockerComposeFile($this, $isNew);