Update default server port from 8080 to 7860 and remove dotenv loading
Browse files
main.go
CHANGED
@@ -16,7 +16,6 @@ import (
|
|
16 |
"net/smtp"
|
17 |
|
18 |
"github.com/gorilla/mux"
|
19 |
-
"github.com/joho/godotenv"
|
20 |
supabase "github.com/lengzuo/supa"
|
21 |
"github.com/rs/cors"
|
22 |
)
|
@@ -56,7 +55,6 @@ type EmailResponse struct {
|
|
56 |
}
|
57 |
|
58 |
func NewMailService() (*MailService, error) {
|
59 |
-
err := godotenv.Load()
|
60 |
|
61 |
conf := supabase.Config{
|
62 |
ApiKey: os.Getenv("SUPABASE_SERVICE_ROLE_KEY"),
|
@@ -494,7 +492,7 @@ func main() {
|
|
494 |
|
495 |
port := os.Getenv("PORT")
|
496 |
if port == "" {
|
497 |
-
port = "
|
498 |
}
|
499 |
|
500 |
log.Printf("Server starting on port %s", port)
|
|
|
16 |
"net/smtp"
|
17 |
|
18 |
"github.com/gorilla/mux"
|
|
|
19 |
supabase "github.com/lengzuo/supa"
|
20 |
"github.com/rs/cors"
|
21 |
)
|
|
|
55 |
}
|
56 |
|
57 |
func NewMailService() (*MailService, error) {
|
|
|
58 |
|
59 |
conf := supabase.Config{
|
60 |
ApiKey: os.Getenv("SUPABASE_SERVICE_ROLE_KEY"),
|
|
|
492 |
|
493 |
port := os.Getenv("PORT")
|
494 |
if port == "" {
|
495 |
+
port = "7860"
|
496 |
}
|
497 |
|
498 |
log.Printf("Server starting on port %s", port)
|