tempestas

A REST API for processing sensor.community data
git clone https://git.bracken.jp/tempestas.git
Log | Files | Refs | README | LICENSE

commit b4b69659b636f95c25c749d8d7f299fb2899e104
parent 2cd683c9831b3c4da84daaf5a72947d53eb48318
Author: Chris Bracken <chris@bracken.jp>
Date:   Mon, 11 Apr 2022 18:10:40 -0700

Default assets to /usr/local/...

Changes the default assets directory to /usr/local/share/tempestas/www.
This is a more reasonable default for production deployment. This value
can still be overridden using the -assets flag.

Diffstat:
Mmain.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.go b/main.go @@ -15,7 +15,7 @@ func main() { dbuser := flag.String("user", "tempestas", "the database user") dbpass := flag.String("password", "", "the database password") addr := flag.String("address", ":8080", "HTTP service host:port") - assetDir := flag.String("assets", "static", "HTTP asset directory") + assetDir := flag.String("assets", "/usr/local/share/tempestas/www", "HTTP asset directory") flag.Parse() fmt.Println("Connecting to database")