embed: Begin refactor to use clearer paths
This commit is contained in:
parent
e75dc29de1
commit
e1ee569629
16 changed files with 431 additions and 181 deletions
12
env/instances.go
vendored
12
env/instances.go
vendored
|
|
@ -233,10 +233,10 @@ func (instance Instance) Stack() stack.Installable {
|
|||
Stack: stack.Stack{
|
||||
Dir: instance.FilesystemBase,
|
||||
},
|
||||
ContextResource: filepath.Join("resources", "compose", "barrel"),
|
||||
ContextPath: filepath.Join("resources", "compose", "barrel"),
|
||||
|
||||
EnvFileResource: filepath.Join("resources", "templates", "docker-env", "barrel"),
|
||||
EnvFileContext: map[string]string{
|
||||
EnvPath: filepath.Join("resources", "templates", "docker-env", "barrel"),
|
||||
EnvContext: map[string]string{
|
||||
"DATA_PATH": filepath.Join(instance.FilesystemBase, "data"),
|
||||
|
||||
"SLUG": instance.Slug,
|
||||
|
|
@ -263,10 +263,10 @@ func (instance Instance) ReserveStack() stack.Installable {
|
|||
Stack: stack.Stack{
|
||||
Dir: instance.FilesystemBase,
|
||||
},
|
||||
ContextResource: filepath.Join("resources", "compose", "reserve"),
|
||||
ContextPath: filepath.Join("resources", "compose", "reserve"),
|
||||
|
||||
EnvFileResource: filepath.Join("resources", "templates", "docker-env", "reserve"),
|
||||
EnvFileContext: map[string]string{
|
||||
EnvPath: filepath.Join("resources", "templates", "docker-env", "reserve"),
|
||||
EnvContext: map[string]string{
|
||||
"VIRTUAL_HOST": instance.Domain(),
|
||||
|
||||
"LETSENCRYPT_HOST": instance.dis.IfHttps(instance.Domain()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue