StartApps starts all the server applications that were configured during InstallHandlers. It should only be called after perkeepd has started serving, since these apps might request some configuration from Perkeep to finish initializing.
()
| 770 | // has started serving, since these apps might request some configuration |
| 771 | // from Perkeep to finish initializing. |
| 772 | func (c *Config) StartApps() error { |
| 773 | for _, ap := range c.apps { |
| 774 | if err := ap.Start(); err != nil { |
| 775 | return fmt.Errorf("error starting app %v: %v", ap.ProgramName(), err) |
| 776 | } |
| 777 | } |
| 778 | return nil |
| 779 | } |
| 780 | |
| 781 | // UploadPublicKey uploads the public key blob with the sign handler that was |
| 782 | // configured during InstallHandlers. |
no test coverage detected