diff --git a/.fresh.yaml b/.fresh.yaml new file mode 100644 index 0000000..862fdff --- /dev/null +++ b/.fresh.yaml @@ -0,0 +1,21 @@ +version: "1" +root: . +main_path: "" +tmp_path: ./tmp +build_name: runner-build +build_args: "" +run_args: "" +build_log: runner-build-errors.log +valid_ext: .go, .tpl, .tmpl, .html +no_rebuild_ext: .tpl, .tmpl, .html +ignore: assets/**/*, assets, tmp/*, public/**/*, public, node_modules/**/*, node_modules +build_delay: "600" +colors: true +log_color_main: cyan +log_color_build: yellow +log_color_runner: green +log_color_watcher: magenta +log_color_app: "" +delve: false +delve_args: "" +debug: false diff --git a/.gitignore b/.gitignore index 020c8b4..6c5eea3 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,10 @@ *.out # Dependency directories (remove the comment below to include it) -# vendor/ +vendor/ + +# Temporary directory created by fresh +tmp/ # Go workspace file go.work diff --git a/colossus.go b/colossus.go index a77991f..666e91a 100644 --- a/colossus.go +++ b/colossus.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "net/http" "github.com/flamego/flamego" @@ -28,5 +29,7 @@ func main() { t.HTML(http.StatusOK, "index") }) + fmt.Println("test!!?") + f.Run() }