func runGrpcProcess() error {
	cmd := exec.Command(os.Args[0], "-app=grpc")

	cmd.Stdout = os.Stdout
	cmd.Stderr = os.Stderr

	// add GRPC child flag into child proc env
	cmd.Env = append(os.Environ(), fmt.Sprintf("%s=%s", envPreforkChildKey, envPreforkChildVal))
	if err := cmd.Start(); err != nil {
		return fmt.Errorf("failed to start a child prefork process, error: %v", err)
	}

	return nil
}
// Runs grpc along side with fiber in another process
Runs grpc along side with fiber in another process
// Runs grpc along side with fiber in another process
func runGrpcProcess() error {
	cmd := exec.Command(os.Args[0], "-app=grpc")
	cmd.Stdout = os.Stdout
	cmd.Stderr = os.Stderr
	cmd.Env = append(os.Environ(), fmt.Sprintf("%s=%s", envPreforkChildKey, envPreforkChildVal))
	if err := cmd.Start(); err != nil {
		return fmt.Errorf("failed to start a child prefork process, error: %v", err)
	}
	return nil
}
func runGrpcProcess ( ) error { cmd := exec . Command ( os . Args [ 0 ] , " " ) cmd . Stdout = os . Stdout cmd . Stderr = os . Stderr cmd . Env = append ( os . Environ ( ) , fmt . Sprintf ( " " , envPreforkChildKey , envPreforkChildVal ) ) if err := cmd . Start ( ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
Runs grpc along side with fiber in another process
Runs grpc along side with fiber in another process
// add GRPC child flag into child proc env