mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-05-16 06:53:03 +00:00
feat!: run checks on env variables
This commit is contained in:
parent
d664899ab6
commit
d76aa4ca11
2 changed files with 19 additions and 0 deletions
3
main.go
3
main.go
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"anonymousoverflow/env"
|
||||
"anonymousoverflow/src/middleware"
|
||||
"anonymousoverflow/src/routes"
|
||||
"fmt"
|
||||
|
@ -11,6 +12,8 @@ import (
|
|||
|
||||
func main() {
|
||||
|
||||
env.RunChecks()
|
||||
|
||||
host := os.Getenv("HOST")
|
||||
if host == "" {
|
||||
host = "0.0.0.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue