feat(plugins): mounts dist folder if exists in plugin

closes #4230
This commit is contained in:
bergquist
2016-03-02 15:11:24 +01:00
parent 10db47bf4c
commit eb79436ab7
2 changed files with 25 additions and 2 deletions

View File

@ -90,6 +90,10 @@ func scan(pluginDir string) error {
}
log.Info("Plugins: Scaning dir %s", pluginDir)
if util.ContainsDistFolder(pluginDir) {
log.Info("Plugins: Found dist folder in %s", pluginDir)
pluginDir = filepath.Join(pluginDir, "dist")
}
if err := util.Walk(pluginDir, true, true, scanner.walker); err != nil {
if pluginDir != "data/plugins" {