Skip to content

Commit ca2c669

Browse files
committed
fix
1 parent 6e9960c commit ca2c669

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/Console/Commands/Init.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ public function handle()
3535
}
3636

3737
$this->servers = Server::all();
38-
if (isCloud()) {
39-
echo "Running in cloud mode\n";
40-
} else {
41-
echo "Running in self-hosted mode\n";
38+
if (! isCloud()) {
4239
$this->send_alive_signal();
4340
get_public_ips();
4441
}
@@ -64,7 +61,7 @@ public function handle()
6461
try {
6562
$this->pullHelperImage();
6663
} catch (\Throwable $e) {
67-
echo "Error pulling helper image: {$e->getMessage()}\n";
64+
//
6865
}
6966

7067
if (isCloud()) {
@@ -125,7 +122,6 @@ private function update_user_emails()
125122
try {
126123
User::whereRaw('email ~ \'[A-Z]\'')->get()->each(function (User $user) {
127124
$user->update(['email' => strtolower($user->email)]);
128-
$user->update(['email' => strtolower($user->email)]);
129125
});
130126
} catch (\Throwable $e) {
131127
echo "Error in updating user emails: {$e->getMessage()}\n";
@@ -229,7 +225,6 @@ private function restore_coolify_db_backup()
229225

230226
private function send_alive_signal()
231227
{
232-
echo "Sending alive signal...\n";
233228
$id = config('app.id');
234229
$version = config('constants.coolify.version');
235230
$settings = instanceSettings();
@@ -255,7 +250,6 @@ private function cleanup_in_progress_application_deployments()
255250
}
256251
$queued_inprogress_deployments = ApplicationDeploymentQueue::whereIn('status', [ApplicationDeploymentStatus::IN_PROGRESS->value, ApplicationDeploymentStatus::QUEUED->value])->get();
257252
foreach ($queued_inprogress_deployments as $deployment) {
258-
echo "Marking deployment {$deployment->id} as failed\n";
259253
$deployment->status = ApplicationDeploymentStatus::FAILED->value;
260254
$deployment->save();
261255
}

database/seeders/ProductionSeeder.php

+6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ public function run(): void
2323
{
2424
$user = 'root';
2525

26+
if (isCloud()) {
27+
echo " Running in cloud mode.\n";
28+
} else {
29+
echo " Running in self-hosted mode.\n";
30+
}
31+
2632
if (User::find(0) !== null && Team::find(0) !== null) {
2733
if (DB::table('team_user')->where('user_id', 0)->first() === null) {
2834
DB::table('team_user')->insert([

0 commit comments

Comments
 (0)