Files
herolib/examples/installers/base/redis_test_template.vsh
peternashaat eada09135c feat: migrate Redis installer and integrate into coordinator
- Created coordinator installer
- Migrated Redis installer to new modular pattern (_model.v, _actions.v, _factory_.v)
- Fixed Redis config template for 7.0.15 compatibility (commented out unsupported directives)
- Added Redis dependency check to coordinator installer
- Coordinator now auto-installs and starts Redis if not available
- Added progress indicators to coordinator build process
- Consolidated Redis example scripts
- All tests passing: Redis installation, coordinator build, and idempotency verified
2025-11-14 13:25:35 +00:00

25 lines
593 B
GLSL
Executable File

#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
import incubaid.herolib.installers.base
println('=== Testing Redis Template Application ===\n')
// Stop redis first
println('Stopping redis...')
base.stop() or {}
// Start redis (this will apply the template)
println('Starting redis with template...')
base.start(port: 6379, datadir: '/root/hero/var/redis')!
println(' Redis started')
// Verify it's running
if base.check(port: 6379) {
println(' Redis is responding to ping')
} else {
println(' Redis is not responding')
}
println('\n Done!')