mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
fix: only append docker network if service/app is running
This commit is contained in:
1 parent
fd855847ff
commit
e6e48c5812
4 files changed
+24
-2
No files matched your search
@@ -35,6 +35,11 @@ class ApplicationPreview extends BaseModel
|
||||
return self::where('application_id', $application_id)->where('pull_request_id', $pull_request_id)->firstOrFail();
|
||||
}
|
||||
|
||||
public function isRunning()
|
||||
{
|
||||
return (bool) str($this->status)->startsWith('running');
|
||||
}
|
||||
|
||||
public function application()
|
||||
{
|
||||
return $this->belongsTo(Application::class);
|
||||
|
||||
Reference in new issue
Block a user