Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
is_vito_serviceflag on services (nginx, php 8.4, redis, supervisor) to identify services Vito depends on — these cannot be uninstalled, but can be restarted/managed with a warning alertLocalprovider is hidden from the create-server UIphp artisan server:setup-localbootstraps the local server (idempotent, called during install and update)VITO_CHANNEL=branchto install directly from a branchTest from branch
curl -s https://raw.githubusercontent.com/vitodeploy/vito/feat/local-server/scripts/install.sh |V_ADMIN_EMAIL=admin@example.com V_ADMIN_PASSWORD=password VITO_VERSION=feat/local-server VITO_CHANNEL=branch bashChanges
New files
app/ServerProviders/Local.php— minimal provider, copies Vito's SSH keysapp/Console/Commands/SetupLocalServerCommand.php—server:setup-localartisan commanddatabase/migrations/..._add_is_vito_service_to_services_table.phptests/Feature/LocalServerTest.php— 11 testsBackend
Server::isLocal()helperServicemodel —is_vito_servicecolumnRegisterServerProvider—hidden()supportServerPolicy::delete()— blocks local server deletionCreateServer—Rule::notIn(['local'])RebootServer/TransferServer— validation errors for local serverUninstall— blocks uninstall of vito servicesServerResource/ServiceResource— exposeis_local/is_vito_serviceFrontend
Scripts
install.sh— callsserver:setup-local, supportsVITO_CHANNEL=branchupdate.sh— callsserver:setup-localafter migrations