diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/hub/prepare | 5 | ||||
-rw-r--r-- | src/hub/src/spreadspace.org/sfive/s5store.go | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/hub/prepare b/src/hub/prepare new file mode 100755 index 0000000..31e0efc --- /dev/null +++ b/src/hub/prepare @@ -0,0 +1,5 @@ +#!/bin/sh +export GOPATH=$(pwd) +export PATH=$GOPATH/bin:$PATH +go get "github.com/coopernurse/gorp" +go get "github.com/mattn/go-sqlite3" diff --git a/src/hub/src/spreadspace.org/sfive/s5store.go b/src/hub/src/spreadspace.org/sfive/s5store.go index 1480f48..6fcb6a2 100644 --- a/src/hub/src/spreadspace.org/sfive/s5store.go +++ b/src/hub/src/spreadspace.org/sfive/s5store.go @@ -112,7 +112,7 @@ func updateFromStatisticsData(value StatisticsData) (dataUpdateDb, []clientDataD func initDb() *gorp.DbMap { // connect to db using standard Go database/sql API - db, err := sql.Open("sqlite3", "/home/gimpf/test.sqlite") + db, err := sql.Open("sqlite3", "/tmp/s5-test.sqlite") checkErr(err, "sql.Open failed") dbmap := &gorp.DbMap{Db: db, Dialect: gorp.SqliteDialect{}} |