You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
482 B

  1. package main
  2. import (
  3. "log"
  4. "git.tovijaeschke.xyz/tovi/personal_website/database"
  5. "git.tovijaeschke.xyz/tovi/personal_website/variables"
  6. "git.tovijaeschke.xyz/tovi/personal_website/webserver"
  7. )
  8. func main() {
  9. log.Println("Initialising database connection...")
  10. err := database.InitDatabaseConn()
  11. if err != nil {
  12. log.Fatal(err)
  13. }
  14. log.Printf(
  15. "Starting webserver on %s\n",
  16. variables.WebserverHost,
  17. )
  18. err = webserver.Start()
  19. if err != nil {
  20. log.Fatal(err)
  21. }
  22. }