mirror of https://github.com/perkeep/perkeep.git
Disable the Cloud Launcher. Too expensive for how underused (3 people?) it is.
This commit is contained in:
parent
6db9cb8a08
commit
c9f78d02ad
2
go.mod
2
go.mod
|
@ -1,5 +1,7 @@
|
|||
module perkeep.org
|
||||
|
||||
go 1.12
|
||||
|
||||
require (
|
||||
bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898
|
||||
cloud.google.com/go v0.39.0
|
||||
|
|
|
@ -546,6 +546,7 @@ func gceDeployHandlerConfig() (*gce.Config, error) {
|
|||
// - neither CAMLI_GCE_CLIENTID is set, nor launcher-config.json is found in the
|
||||
// camlistore server config dir.
|
||||
func gceDeployHandler(prefix string) (*gce.DeployHandler, error) {
|
||||
return nil, errors.New("The Perkeep Cloud Launcher is no longer available.")
|
||||
var hostPort string
|
||||
var err error
|
||||
scheme := "https"
|
||||
|
@ -909,6 +910,7 @@ func main() {
|
|||
gceLauncher, err := gceDeployHandler("/launch/")
|
||||
if err != nil {
|
||||
log.Printf("Not installing GCE /launch/ handler: %v", err)
|
||||
err := err
|
||||
mux.HandleFunc("/launch/", func(w http.ResponseWriter, r *http.Request) {
|
||||
http.Error(w, fmt.Sprintf("GCE launcher disabled: %v", err), 500)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue