Xamal.Commands.Server (xamal v0.3.0)

Copy Markdown View Source

Server management commands: directory creation, bootstrap.

Summary

Functions

Create all required directories on the server.

Check the current symlink target.

Ensure the run directory exists (for locks, audit logs).

Create/update the current symlink to point to a release version.

List the contents of the releases directory.

Remove the entire service directory.

Functions

bootstrap(config)

Create all required directories on the server.

current_version(config)

Check the current symlink target.

ensure_run_directory()

Ensure the run directory exists (for locks, audit logs).

list_releases(config)

List the contents of the releases directory.

remove_service_directory(config)

Remove the entire service directory.