🧪 Testing SSR with nextjs
This commit is contained in:
@ -1,10 +1,15 @@
|
||||
package navi
|
||||
|
||||
import "git.solsynth.dev/goatworks/roadsign/pkg/warden"
|
||||
import (
|
||||
"git.solsynth.dev/goatworks/roadsign/pkg/warden"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
func InitializeWarden(regions []*Region) {
|
||||
pool := make([]*warden.AppInstance, 0)
|
||||
|
||||
log.Info().Msg("Starting Warden applications...")
|
||||
|
||||
for _, region := range regions {
|
||||
for _, application := range region.Applications {
|
||||
pool = append(pool, &warden.AppInstance{
|
||||
@ -15,5 +20,7 @@ func InitializeWarden(regions []*Region) {
|
||||
|
||||
// Hot swap
|
||||
warden.InstancePool = pool
|
||||
warden.StartPool()
|
||||
errs := warden.StartPool()
|
||||
|
||||
log.Info().Any("errs", errs).Msg("Warden applications has been started.")
|
||||
}
|
||||
|
Reference in New Issue
Block a user