This commit is contained in:
Andras Bacsai
2023-06-16 11:01:27 +02:00
parent 2b8467e6a1
commit 2c3ddfd363
14 changed files with 35 additions and 18 deletions

View File

@@ -16,7 +16,7 @@ class UpdateCoolify
try {
ray('Running InstanceAutoUpdateJob');
$localhost_name = 'localhost';
if (config('app.env') === 'local') {
if (isDev()) {
$localhost_name = 'testing-local-docker-container';
}
$this->server = Server::where('name', $localhost_name)->firstOrFail();
@@ -48,7 +48,7 @@ class UpdateCoolify
}
private function update()
{
if (config('app.env') === 'local') {
if (isDev()) {
ray('Running update on local docker container');
remote_process([
"sleep 10"