librespeed/speedtest-go

Make assets directory location configurable

driesmp opened this issue · 3 comments

Description

Make the asset directory configurable in the source code or the configuration file.

Why it should be implemented

Me in porting this stuff to FreeBSD. When I'm trying to start speedtest-go from the install directory itself, with the assert directory located in it everything works. When trying to start it from an rc script, it doesn't find the asset dir. Probably because of the env?

Optional: implementation suggestions

If we could specify asset dir in the source, like the config path location viper.AddConfigPath("."),
If we could have a asset.addpath or something, you know what I mean :-).

Ok I dug a little deeper and as you stated I can use our RC framework to chdir to the DIR in question. I might leave this open, but its fine for now :-).