mirror of
https://github.com/Kyren223/eko.git
synced 2025-09-04 04:28:21 +00:00
Fixed mprocs sending SIGHUP on restart instead of SIGTERM by adding
exec and updated gitignore
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
||||
*.db
|
||||
*.db-shm
|
||||
*.db-wal
|
||||
eko-server
|
||||
|
@@ -292,7 +292,7 @@ func (m *UsersInfo) Type() PacketType {
|
||||
type TosInfo struct {
|
||||
Tos string
|
||||
PrivacyPolicy string
|
||||
Date string // 2025-07-05
|
||||
Hash string
|
||||
}
|
||||
|
||||
func (m *TosInfo) Type() PacketType {
|
||||
|
@@ -486,12 +486,12 @@ func timeout[T packet.Payload](
|
||||
func sendTosInfo(ctx context.Context, sess *session.Session) bool {
|
||||
tos := embeds.TermsOfService.Load().(string)
|
||||
privacy := embeds.PrivacyPolicy.Load().(string)
|
||||
date := embeds.TosPrivacyHash.Load().(string)
|
||||
hash := embeds.TosPrivacyHash.Load().(string)
|
||||
|
||||
payload := &packet.TosInfo{
|
||||
Tos: tos,
|
||||
PrivacyPolicy: privacy,
|
||||
Date: date,
|
||||
Hash: hash,
|
||||
}
|
||||
return sess.Write(ctx, payload)
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
procs:
|
||||
server:
|
||||
shell: "exec go run ./cmd/server -- -prod=false"
|
||||
shell: "go build -o ./eko-server ./cmd/server && exec ./eko-server -- -prod=false"
|
||||
client-main:
|
||||
shell: "go run ./cmd/client"
|
||||
client-secondary:
|
||||
|
Reference in New Issue
Block a user