mirror of
https://github.com/coollabsio/coolify.git
synced 2026-06-19 07:35:25 +00:00
feat(railpack): log generated config and build plan, add multi-language dev examples
Log Railpack config JSON (dev-only) after generation and capture railpack-plan.json post-prepare step. In prod, strip secrets array before logging. In dev, log full plan. Add 10 multi-language seeder examples (Python/Flask, Go/Gin, Rust, Laravel, Symfony, Rails, Elixir/Phoenix, Bun) targeting v4.x branch. Support per-example git_branch override in upsertApplication.
This commit is contained in:
@@ -288,6 +288,78 @@ class DevelopmentRailpackExamplesSeeder extends Seeder
|
||||
'is_static' => true,
|
||||
'is_spa' => true,
|
||||
],
|
||||
// Multi-language examples (only available on v4.x branch).
|
||||
[
|
||||
'uuid' => 'railpack-python-flask',
|
||||
'name' => 'Railpack Python Flask Example',
|
||||
'base_directory' => '/flask',
|
||||
'ports_exposes' => '5000',
|
||||
'git_branch' => 'v4.x',
|
||||
'start_command' => 'gunicorn app:app --bind 0.0.0.0:5000',
|
||||
],
|
||||
[
|
||||
'uuid' => 'railpack-go-gin',
|
||||
'name' => 'Railpack Go Gin Example',
|
||||
'base_directory' => '/go/gin',
|
||||
'ports_exposes' => '8080',
|
||||
'git_branch' => 'v4.x',
|
||||
],
|
||||
[
|
||||
'uuid' => 'railpack-rust',
|
||||
'name' => 'Railpack Rust Example',
|
||||
'base_directory' => '/rust',
|
||||
'ports_exposes' => '8080',
|
||||
'git_branch' => 'v4.x',
|
||||
],
|
||||
[
|
||||
'uuid' => 'railpack-laravel',
|
||||
'name' => 'Railpack Laravel Example',
|
||||
'base_directory' => '/laravel',
|
||||
'ports_exposes' => '80',
|
||||
'git_branch' => 'v4.x',
|
||||
],
|
||||
[
|
||||
'uuid' => 'railpack-laravel-pure',
|
||||
'name' => 'Railpack Laravel Pure Example',
|
||||
'base_directory' => '/laravel-pure',
|
||||
'ports_exposes' => '80',
|
||||
'git_branch' => 'v4.x',
|
||||
],
|
||||
[
|
||||
'uuid' => 'railpack-laravel-inertia',
|
||||
'name' => 'Railpack Laravel Inertia Example',
|
||||
'base_directory' => '/laravel-inertia',
|
||||
'ports_exposes' => '80',
|
||||
'git_branch' => 'v4.x',
|
||||
],
|
||||
[
|
||||
'uuid' => 'railpack-symfony',
|
||||
'name' => 'Railpack Symfony Example',
|
||||
'base_directory' => '/symfony',
|
||||
'ports_exposes' => '80',
|
||||
'git_branch' => 'v4.x',
|
||||
],
|
||||
[
|
||||
'uuid' => 'railpack-rails',
|
||||
'name' => 'Railpack Ruby on Rails Example',
|
||||
'base_directory' => '/rails-example',
|
||||
'ports_exposes' => '3000',
|
||||
'git_branch' => 'v4.x',
|
||||
],
|
||||
[
|
||||
'uuid' => 'railpack-elixir-phoenix',
|
||||
'name' => 'Railpack Elixir Phoenix Example',
|
||||
'base_directory' => '/elixir-phoenix',
|
||||
'ports_exposes' => '4000',
|
||||
'git_branch' => 'v4.x',
|
||||
],
|
||||
[
|
||||
'uuid' => 'railpack-bun',
|
||||
'name' => 'Railpack Bun Example',
|
||||
'base_directory' => '/bun',
|
||||
'ports_exposes' => '3000',
|
||||
'git_branch' => 'v4.x',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -409,7 +481,7 @@ KEY,
|
||||
'fqdn' => "http://{$example['uuid']}.127.0.0.1.sslip.io",
|
||||
'repository_project_id' => self::REPOSITORY_PROJECT_ID,
|
||||
'git_repository' => self::GIT_REPOSITORY,
|
||||
'git_branch' => self::GIT_BRANCH,
|
||||
'git_branch' => $example['git_branch'] ?? self::GIT_BRANCH,
|
||||
'build_pack' => 'railpack',
|
||||
'ports_exposes' => $example['ports_exposes'],
|
||||
'base_directory' => $example['base_directory'],
|
||||
|
||||
Reference in New Issue
Block a user