forked from toolshed/abra
feat: auto strip domain names to avoid runtime limits
This commit is contained in:
@ -52,6 +52,12 @@ func (a App) StackName() string {
|
||||
}
|
||||
|
||||
stackName := SanitiseAppName(a.Name)
|
||||
|
||||
if len(stackName) > 45 {
|
||||
logrus.Debugf("trimming %s to %s to avoid runtime limits", stackName, stackName[:45])
|
||||
stackName = stackName[:45]
|
||||
}
|
||||
|
||||
a.Env["STACK_NAME"] = stackName
|
||||
|
||||
return stackName
|
||||
|
Reference in New Issue
Block a user