Skip to content

Commit

Permalink
fix: make static binary
Browse files Browse the repository at this point in the history
  • Loading branch information
rhnvrm committed Apr 20, 2021
1 parent bbf11cc commit b11e4f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion config.sample.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
http_address="localhost:8000"
http_address="0.0.0.0:8000"
read_timeout="3s"
write_timeout="3s"
dbfile="app.db"
Expand Down
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -614,7 +614,6 @@ func initApp() {
}

func main() {
log.Println(appMode)
switch appMode {
case "init_app":
initApp()
Expand Down

0 comments on commit b11e4f8

Please sign in to comment.