fix: read correct app file name for secret generation

Stack name is only an internal docker concept now.
This commit is contained in:
decentral1se 2022-01-17 22:17:22 +01:00
parent fc2d83d203
commit ca75654769
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@ var RecipeName string
// createSecrets creates all secrets for a new app.
func createSecrets(sanitisedAppName string) (AppSecrets, error) {
appEnvPath := path.Join(config.ABRA_DIR, "servers", NewAppServer, fmt.Sprintf("%s.env", sanitisedAppName))
appEnvPath := path.Join(config.ABRA_DIR, "servers", NewAppServer, fmt.Sprintf("%s.env", NewAppName))
appEnv, err := config.ReadEnv(appEnvPath)
if err != nil {
return nil, err

View File

@ -47,6 +47,7 @@ wire up for testing in an automated way.
- `abra app run <app>`
- `abra app secret ls <app>`
- `abra app volume ls <app>`
- `abra app new --secrets <recipe>`
### hard mode