mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-10-29 17:16:31 +00:00
added back ensurefilesexist
This commit is contained in:
parent
57ca374de4
commit
56a725c5df
5
main.go
5
main.go
@ -21,7 +21,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
utils.ClearTemporaryBans()
|
utils.EnsureFileExists("config.yml", "app/static/examples/config.example.yml")
|
||||||
|
utils.EnsureFileExists("relay_metadata.json", "app/static/examples/relay_metadata.example.json")
|
||||||
|
|
||||||
restartChan := make(chan struct{})
|
restartChan := make(chan struct{})
|
||||||
go utils.WatchConfigFile("config.yml", restartChan)
|
go utils.WatchConfigFile("config.yml", restartChan)
|
||||||
@ -122,4 +123,4 @@ func ListenAndServe(w http.ResponseWriter, r *http.Request) {
|
|||||||
} else {
|
} else {
|
||||||
routes.IndexHandler(w, r)
|
routes.IndexHandler(w, r)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user