Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

wip

Andras Bacsaib0f062ff0c06
diff --git a/app/Http/Livewire/DeployApplication.php b/app/Http/Livewire/DeployApplication.php
index c340a9aa74..28533b820b 100644
--- a/app/Http/Livewire/DeployApplication.php
+++ b/app/Http/Livewire/DeployApplication.php
@@ -67,10 +67,10 @@ class DeployApplication extends Component
// Export git commit to a file
$this->execute_in_builder("cd {$workdir} && git rev-parse HEAD > {$workdir}/.git-commit");
- // Set TAG in docker-compose.yml
+ // Create docker-compose.yml
$this->execute_in_builder("echo '{$docker_compose_base64}' | base64 -d > {$workdir}/docker-compose.yml");
+ // Set TAG in docker-compose.yml
$this->execute_in_builder("sed -i \"s/TAG/$(cat {$workdir}/.git-commit)/g\" {$workdir}/docker-compose.yml");
- $this->execute_in_builder("cat {$workdir}/docker-compose.yml");
if (str_starts_with($application->base_image, 'apache') || str_starts_with($application->base_image, 'nginx')) {
// @TODO: Add static site builds
diff --git a/app/Models/Deployment.php b/app/Models/Deployment.php
deleted file mode 100644
index c8751e1fef..0000000000
--- a/app/Models/Deployment.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-namespace App\Models;
-
-use Illuminate\Database\Eloquent\Model;
-use Spatie\Activitylog\Models\Activity;
-
-class Deployment extends Model
-{
- protected $fillable = [
- 'uuid',
- 'type_id',
- 'type_type',
- 'activity_log_id',
- ];
- public function type()
- {
- return $this->morphTo();
- }
- public function activity()
- {
- return $this->belongsTo(Activity::class, 'activity_log_id');
- }
-}
diff --git a/database/migrations/2023_03_27_083622_create_deployments_table.php b/database/migrations/2023_03_27_083622_create_deployments_table.php
deleted file mode 100644
index 8a0becc339..0000000000
--- a/database/migrations/2023_03_27_083622_create_deployments_table.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
- /**
- * Run the migrations.
- */
- public function up(): void
- {
- Schema::create('deployments', function (Blueprint $table) {
- $table->id();
- $table->string('uuid')->unique();
- $table->morphs('type');
- $table->foreignId('activity_log_id');
- $table->timestamps();
- });
- }
-
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::dropIfExists('deployments');
- }
-};