This commit adds a new file 'local.settings.php' to each distillery instance. This file can be used to automatically edit global distillery settings.
28 lines
813 B
Go
28 lines
813 B
Go
package barrel
|
|
|
|
import (
|
|
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient"
|
|
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient/locker"
|
|
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient/mstore"
|
|
)
|
|
|
|
// Barrel provides access to the underlying Barrel
|
|
type Barrel struct {
|
|
ingredient.Base
|
|
dependencies struct {
|
|
Locker *locker.Locker
|
|
MStore *mstore.MStore
|
|
}
|
|
}
|
|
|
|
const (
|
|
BaseDirectory = "/var/www/data"
|
|
ComposerDirectory = BaseDirectory + "/project"
|
|
WebDirectory = ComposerDirectory + "/web"
|
|
OntologyDirectory = SitesDirectory + "/default/files/ontology"
|
|
SitesDirectory = WebDirectory + "/sites"
|
|
WissKIDirectory = WebDirectory + "/modules/contrib/wisski"
|
|
|
|
LocalSettingsPath = "/settings/local.php"
|
|
GlobalSettingsPath = "/settings/global.php"
|
|
)
|