wip previews
This commit is contained in:
@@ -41,6 +41,8 @@ return new class extends Migration
|
||||
$table->string('base_directory')->default('/');
|
||||
$table->string('publish_directory')->nullable();
|
||||
|
||||
$table->schemalessAttributes('previews');
|
||||
|
||||
$table->string('health_check_path')->default('/');
|
||||
$table->string('health_check_port')->nullable();
|
||||
$table->string('health_check_host')->default('localhost');
|
||||
|
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Data\ApplicationPreview;
|
||||
use App\Models\Application;
|
||||
use App\Models\ApplicationSetting;
|
||||
use App\Models\Environment;
|
||||
@@ -36,6 +37,16 @@ class ApplicationSeeder extends Seeder
|
||||
'destination_type' => StandaloneDocker::class,
|
||||
'source_id' => $github_public_source->id,
|
||||
'source_type' => GithubApp::class,
|
||||
'previews' => [
|
||||
ApplicationPreview::from([
|
||||
'pullRequestId' => 1,
|
||||
'branch' => 'nodejs-fastify'
|
||||
]),
|
||||
ApplicationPreview::from([
|
||||
'pullRequestId' => 2,
|
||||
'branch' => 'nodejs-fastify'
|
||||
])
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user