refactor: move coordinator installer to horus directory and fix Redis installer permissions
- Moved coordinator installer from installers/infra to installers/horus - Renamed HerocoordinatorServer to CoordinatorServer - Fixed Redis installer permissions for /var/lib/redis directory - Integrated coordinator with new modular Redis installer
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import incubaid.herolib.installers.infra.herocoordinator
|
||||
|
||||
// Example usage of herocoordinator installer
|
||||
// This will:
|
||||
// 1. Check and install Redis if not running (required dependency)
|
||||
// 2. Install Rust if not already installed
|
||||
// 3. Clone the horus repository
|
||||
// 4. Build the herocoordinator binary
|
||||
|
||||
// Build and install herocoordinator
|
||||
// This will automatically check and install Redis and Rust if needed
|
||||
println('Building coordinator from horus repository...')
|
||||
println('(This will install Redis and Rust if not already installed)\n')
|
||||
|
||||
// Call build_coordinator - it will handle all dependencies
|
||||
herocoordinator.build_coordinator()!
|
||||
|
||||
println('\n✅ Herocoordinator built and installed successfully!')
|
||||
println('Binary location: /hero/var/bin/coordinator')
|
||||
|
||||
// Note: To start the service, uncomment the lines below
|
||||
// (requires proper zinit or screen session setup)
|
||||
// herocoordinator.start()!
|
||||
// if herocoordinator.running()! {
|
||||
// println('Herocoordinator is running!')
|
||||
// }
|
||||
// herocoordinator.stop()!
|
||||
// herocoordinator.destroy()!
|
||||
Reference in New Issue
Block a user