无法在本地系统上运行Grafana服务器

无法在本地系统上运行Grafana服务器,grafana,Grafana,我必须为Grafana创建一个插件。为此,我从Github克隆了代码,并遵循。我已经成功地构建了grafana,但是在运行服务器时遇到了问题。我发现了错误 Grafana-server Init Failed: Could not find config defaults, make sure homepath command line parameter is set or working directory is homepath 我确实发现了这个问题。我复制了“sample.ini”并将

我必须为Grafana创建一个插件。为此,我从Github克隆了代码,并遵循。我已经成功地构建了grafana,但是在运行服务器时遇到了问题。我发现了错误

Grafana-server Init Failed: Could not find config defaults, make sure homepath command line parameter is set or working directory is homepath
我确实发现了这个问题。我复制了“sample.ini”并将其重新命名为“custom.ini”,并在构建grafana后生成的bin文件夹中使用了以下命令

.\grafana-server.exe --config D:\Go-UpdatedWorkSpace\grafana\conf\custom.ini

.\grafana-server.exe D:\Go-UpdatedWorkSpace\grafana\conf\custom.ini

.\grafana-server.exe -config D:\Go-UpdatedWorkSpace\grafana\conf\custom.ini

.\grafana-server.exe -config "D:\Go-UpdatedWorkSpace\grafana\conf\custom.ini"

.\grafana-server.exe --config "D:\Go-UpdatedWorkSpace\grafana\conf\custom.ini"

.\grafana-server.exe "D:\Go-UpdatedWorkSpace\grafana\conf\custom.ini"
但他们中没有一个人成功了。我仍然得到错误

Grafana-server Init Failed: Could not find config defaults, make sure homepath command line parameter is set or working directory is homepath

我做错了什么?我是Grafana development的新手,非常感谢您的帮助

我已经设法解决了这个问题。我使用以下命令在本地运行Grafana

 ./grafana-server.exe -config "D:\Go-UpdatedWorkSpace\grafana\conf\defaults.ini" -homepath "D:\Go-UpdatedWorkSpace\grafana".
我在使用GoLang构建grafana后创建的“bin”文件夹上执行了此命令。(homepath目录中还有一个bin文件夹,我想我们可以使用任意一个“bin”文件夹)。问题是我没有在命令中提供“homepath”。“homepath”是克隆grafana代码的目录