mirror of
https://github.com/imjasonh/kontain.me
synced 2026-07-18 14:47:48 +00:00
redirect to kontain.me, concurrently mirror
This commit is contained in:
parent
a33f348561
commit
db52ef43ab
5 changed files with 5 additions and 2 deletions
|
|
@ -48,11 +48,12 @@ func main() {
|
|||
log.Fatalf("datastore.NewClient: %v", err)
|
||||
}
|
||||
|
||||
http.Handle("/", &server{
|
||||
http.Handle("/v1/projects/", &server{
|
||||
info: log.New(os.Stdout, "I ", log.Ldate|log.Ltime|log.Lshortfile),
|
||||
error: log.New(os.Stderr, "E ", log.Ldate|log.Ltime|log.Lshortfile),
|
||||
ds: ds,
|
||||
})
|
||||
http.Handle("/", http.RedirectHandler("https://kontain.me", http.StatusMovedPermanently))
|
||||
|
||||
log.Println("Starting...")
|
||||
port := os.Getenv("PORT")
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ func main() {
|
|||
error: log.New(os.Stderr, "E ", log.Ldate|log.Ltime|log.Lshortfile),
|
||||
ds: ds,
|
||||
})
|
||||
http.Handle("/", http.RedirectHandler("https://kontain.me", http.StatusMovedPermanently))
|
||||
|
||||
log.Println("Starting...")
|
||||
port := os.Getenv("PORT")
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ func main() {
|
|||
info: log.New(os.Stdout, "I ", log.Ldate|log.Ltime|log.Lshortfile),
|
||||
error: log.New(os.Stderr, "E ", log.Ldate|log.Ltime|log.Lshortfile),
|
||||
})
|
||||
http.Handle("/", http.RedirectHandler("https://kontain.me", http.StatusMovedPermanently))
|
||||
|
||||
log.Println("Starting...")
|
||||
port := os.Getenv("PORT")
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ func main() {
|
|||
info: log.New(os.Stdout, "I ", log.Ldate|log.Ltime|log.Lshortfile),
|
||||
error: log.New(os.Stderr, "E ", log.Ldate|log.Ltime|log.Lshortfile),
|
||||
})
|
||||
http.Handle("/", http.RedirectHandler("https://kontain.me", http.StatusMovedPermanently))
|
||||
|
||||
log.Println("Starting...")
|
||||
port := os.Getenv("PORT")
|
||||
|
|
|
|||
|
|
@ -68,7 +68,6 @@ case ${1:-"all"} in
|
|||
gcloud --project=${project} run deploy mirror \
|
||||
--image=gcr.io/${project}/github.com/imjasonh/kontain.me/cmd/mirror \
|
||||
--memory=2Gi \
|
||||
--concurrency=1 \
|
||||
--region=${region} \
|
||||
--platform=managed
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue