mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 02:27:57 +00:00
1.9 KiB
1.9 KiB
Development-only features
Development-only features must only be available when APP_ENV=local. Use the
isDev() helper consistently at every entry point so that hiding the UI is not
the only protection.
Resource migration between servers
Resource migration is under development and is not available in production.
- UI: The Migrate to another server section in
resources/views/livewire/project/shared/resource-operations.blade.phpis rendered only whenisDev()returnstrueand displays a Dev badge. - API: Application, database, and service migration requests are rejected
with
404 Not Foundoutside development mode bymigrateResourceToDestination()inbootstrap/helpers/api.php. - Action:
MigrateResourceToDestinationrejects execution outside development mode as a defense-in-depth check. - Tests: Development-mode UI, API access, and production isolation are
covered by
tests/Feature/MigrateResourceToDestinationTest.php.
Before promoting this feature, remove all three runtime gates together and update the tests and this document in the same change.
Server transfer between Coolify instances
Server transfer is under development and is not available in production.
- UI: Transfer and import links are rendered only when
isDev()returnstrue, and the transfer Livewire components return404 Not Foundoutside development mode. Public Livewire actions repeat the check before doing work. - API: Every endpoint handled by
ServerTransferControllerreturns404 Not FoundunlessisDev()returnstrue. - Tests: Development-mode behavior and production isolation for all API
endpoints, UI routes, and navigation links are covered by
tests/Feature/Api/ServerTransferApiTest.phpandtests/Feature/Livewire/ServerTransferUiTest.php.
Before promoting this feature, remove the API and UI runtime gates together and update the tests and this document in the same change.