1
mirror of https://github.com/jakejarvis/npqueue.git synced 2025-04-26 12:58:26 -04:00

no need for dns prefetch for heroku domain

This commit is contained in:
Jake Jarvis 2019-06-24 17:34:39 -04:00
parent ad5d6aee2d
commit 8e1c7619de
No known key found for this signature in database
GPG Key ID: D36CB66F4002B25B
6 changed files with 1 additions and 2 deletions

View File

@ -168,7 +168,7 @@ func main() {
addr := ":" + os.Getenv("PORT") addr := ":" + os.Getenv("PORT")
http.HandleFunc("/api/list", List) http.HandleFunc("/api/list", List)
http.Handle("/", http.FileServer(http.Dir("./static"))) http.Handle("/", http.FileServer(http.Dir("./public")))
log.Printf("Listening on %s...\n", addr) log.Printf("Listening on %s...\n", addr)
if err := http.ListenAndServe(addr, nil); err != nil { if err := http.ListenAndServe(addr, nil); err != nil {

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -4,7 +4,6 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>NoPixel GTA5 RP Online Players</title> <title>NoPixel GTA5 RP Online Players</title>
<link rel="dns-prefetch" href="https://hidden-depths-42970.herokuapp.com">
<link rel="icon" href="favicon.ico"> <link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
</head> </head>