deployment actions and git cleanup
This commit is contained in:
parent
dd50d34703
commit
d4bcd0d466
16 changed files with 103 additions and 1166 deletions
5
main.go
5
main.go
|
|
@ -1,5 +1,7 @@
|
|||
package main
|
||||
|
||||
//go:generate go tool templ generate templates
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
|
@ -113,6 +115,9 @@ func main() {
|
|||
mustCopy("img/favicon.avif", "www/images/favicon.avif")
|
||||
mustCopy("img/logo.svg", "www/images/logo.svg")
|
||||
mustCopy("js/portfolio.js", "www/portfolio.js")
|
||||
if len(os.Args) > 1 {
|
||||
return
|
||||
}
|
||||
log.Println("listening on :8000")
|
||||
log.Fatal(http.ListenAndServe(":8000", http.FileServer(http.Dir("www"))))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue