diff --git a/.goreleaser.yml b/.goreleaser.yml index 0c2cf32..5958a47 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,6 @@ -# This is an example .goreleaser.yml file with some sane defaults. -# Make sure to check the documentation at http://goreleaser.com +env: + - CGO_ENABLED=0 + before: hooks: # You may remove this if you don't use go modules. diff --git a/config.sample.toml b/config.sample.toml index c73f842..7f3d89a 100644 --- a/config.sample.toml +++ b/config.sample.toml @@ -1,4 +1,4 @@ -http_address="localhost:8000" +http_address="0.0.0.0:8000" read_timeout="3s" write_timeout="3s" dbfile="app.db" diff --git a/main.go b/main.go index 8a21cd5..30781ad 100644 --- a/main.go +++ b/main.go @@ -567,7 +567,7 @@ func initApp() { } file.Close() - db, err := sqlx.Connect("sqlite3", "app.db") + db, err := sqlx.Connect("sqlite", "app.db") if err != nil { log.Fatal(err) } @@ -614,7 +614,6 @@ func initApp() { } func main() { - log.Println(appMode) switch appMode { case "init_app": initApp()