From cb0939acf31729da29f179e06e8ef528d577258f Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 3 Jul 2023 21:52:28 +0200 Subject: [PATCH] fix: do not update next channel all the time --- app/Actions/Server/UpdateCoolify.php | 1 - scripts/run | 24 ++++++++++++------------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/app/Actions/Server/UpdateCoolify.php b/app/Actions/Server/UpdateCoolify.php index 047a06e81..71231cd36 100644 --- a/app/Actions/Server/UpdateCoolify.php +++ b/app/Actions/Server/UpdateCoolify.php @@ -26,7 +26,6 @@ public function __invoke(bool $force) ray('latest version:' . $this->latest_version . " current version: " . $this->current_version . ' force: ' . $force); if ($settings->next_channel) { ray('next channel enabled'); - $force = true; $this->latest_version = 'next'; } if ($force) { diff --git a/scripts/run b/scripts/run index 01c643e38..8b7d40000 100755 --- a/scripts/run +++ b/scripts/run @@ -25,35 +25,35 @@ function sync:bunny { } function queue { - bash vendor/bin/spin exec -u webuser coolify php artisan queue:listen + bash spin exec -u webuser coolify php artisan queue:listen } function horizon { - bash vendor/bin/spin exec -u webuser coolify php artisan horizon -vvv + bash spin exec -u webuser coolify php artisan horizon -vvv } function schedule { - bash vendor/bin/spin exec -u webuser coolify php artisan schedule:work + bash spin exec -u webuser coolify php artisan schedule:work } function schedule:run { - bash vendor/bin/spin exec -u webuser coolify php artisan schedule:run + bash spin exec -u webuser coolify php artisan schedule:run } function db:reset { - bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --seed + bash spin exec -u webuser coolify php artisan migrate:fresh --seed } function db { - bash vendor/bin/spin exec -u webuser coolify php artisan db + bash spin exec -u webuser coolify php artisan db } function db:migrate { - bash vendor/bin/spin exec -u webuser coolify php artisan migrate + bash spin exec -u webuser coolify php artisan migrate } function db:reset-prod { - bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --force --seed --seeder=ProductionSeeder || + bash spin exec -u webuser coolify php artisan migrate:fresh --force --seed --seeder=ProductionSeeder || php artisan migrate:fresh --force --seed --seeder=ProductionSeeder } @@ -62,11 +62,11 @@ function mfs { } function coolify { - bash vendor/bin/spin exec -u webuser coolify bash + bash spin exec -u webuser coolify bash } function coolify:root { - bash vendor/bin/spin exec coolify bash + bash spin exec coolify bash } function coolify:proxy { docker exec -ti coolify-proxy sh @@ -77,11 +77,11 @@ function redis { } function vite { - bash vendor/bin/spin exec vite bash + bash spin exec vite bash } function tinker { - bash vendor/bin/spin exec -u webuser coolify php artisan tinker + bash spin exec -u webuser coolify php artisan tinker }