🧪 Testing SSR with nextjs
This commit is contained in:
parent
1f037113bf
commit
5eef06bd42
@ -1,10 +1,15 @@
|
|||||||
package navi
|
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) {
|
func InitializeWarden(regions []*Region) {
|
||||||
pool := make([]*warden.AppInstance, 0)
|
pool := make([]*warden.AppInstance, 0)
|
||||||
|
|
||||||
|
log.Info().Msg("Starting Warden applications...")
|
||||||
|
|
||||||
for _, region := range regions {
|
for _, region := range regions {
|
||||||
for _, application := range region.Applications {
|
for _, application := range region.Applications {
|
||||||
pool = append(pool, &warden.AppInstance{
|
pool = append(pool, &warden.AppInstance{
|
||||||
@ -15,5 +20,7 @@ func InitializeWarden(regions []*Region) {
|
|||||||
|
|
||||||
// Hot swap
|
// Hot swap
|
||||||
warden.InstancePool = pool
|
warden.InstancePool = pool
|
||||||
warden.StartPool()
|
errs := warden.StartPool()
|
||||||
|
|
||||||
|
log.Info().Any("errs", errs).Msg("Warden applications has been started.")
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@ max_qps = -1
|
|||||||
|
|
||||||
[logging]
|
[logging]
|
||||||
access = "./logs/access.log"
|
access = "./logs/access.log"
|
||||||
|
warden_apps = "./logs/warden"
|
||||||
|
|
||||||
[paths]
|
[paths]
|
||||||
configs = "./config"
|
configs = "./config"
|
||||||
|
@ -11,5 +11,5 @@ uri = "http://localhost:3000"
|
|||||||
[[applications]]
|
[[applications]]
|
||||||
id = "capital-app"
|
id = "capital-app"
|
||||||
workdir = "../data/capital"
|
workdir = "../data/capital"
|
||||||
command = ["node", "server/index.mjs"]
|
command = ["node", "standalone/server.js"]
|
||||||
environment = []
|
environment = []
|
@ -21,6 +21,10 @@ force_https = false
|
|||||||
max_body_size = 549_755_813_888 # 512 GiB
|
max_body_size = 549_755_813_888 # 512 GiB
|
||||||
max_qps = -1
|
max_qps = -1
|
||||||
|
|
||||||
|
[logging]
|
||||||
|
access = "../../logs/access.log"
|
||||||
|
warden_apps = "../../logs/warden"
|
||||||
|
|
||||||
[paths]
|
[paths]
|
||||||
configs = "./config"
|
configs = "./config"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user