app not showing as the domain name I selected #3

Closed
opened 2024-08-05 02:16:11 +00:00 by ammaratef45 · 1 comment
Owner

I used abra app new focalboard to create an app but when I used abra app ls it showed as {{ .Name }} | {{ .Name }}.example.com instead of the domain I selected

I ran it with debug to get the output below (masked my domain name and user name)

DEBU[0000] read map[DOMAIN:{{ .Name }}.example.com LETS_ENCRYPT_ENV:production TYPE:{{ .Name }}] from /Users/xxx/.abra/recipes/focalboard/.env.sample  caller="/drone/src/pkg/config/env.go:67 ReadEnv"
DEBU[0000] successfully checked out refs/heads/main in /Users/xxx/.abra/catalogue  caller="/drone/src/pkg/git/branch.go:97 CheckoutDefaultBranch"
DEBU[0001] fetched latest git changes for /Users/xxx/.abra/catalogue  caller="/drone/src/pkg/catalogue/catalogue.go:85 EnsureUpToDate"
DEBU[0001] read recipe catalogue from file system cache in /Users/xxx/.abra/catalogue/recipes.json  caller="/drone/src/pkg/recipe/recipe.go:684 readRecipeCatalogueFS"
DEBU[0001] recipe metadata retrieved for focalboard      caller="/drone/src/pkg/recipe/recipe.go:740 GetRecipeMeta"
DEBU[0001] validated focalboard as recipe argument       caller="/drone/src/cli/internal/validate.go:75 ValidateRecipe"
DEBU[0001] no /Users/xxx/.gitignore exists, skipping reading gitignore paths  caller="/drone/src/pkg/git/read.go:143 parseExcludesFile"
DEBU[0001] discovered clean git status in /Users/xxx/.abra/recipes/focalboard  caller="/drone/src/pkg/git/read.go:65 IsClean"
DEBU[0001] successfully checked out refs/heads/main in /Users/xxx/.abra/recipes/focalboard  caller="/drone/src/pkg/git/branch.go:97 CheckoutDefaultBranch"
DEBU[0001] fetched latest git changes for focalboard     caller="/drone/src/pkg/recipe/recipe.go:647 EnsureUpToDate"
DEBU[0001] retrieved 1 servers: [<server domain>]   caller="/drone/src/pkg/config/env.go:53 GetServers"
? Select app server: <server domain>
? Specify app domain <app domain>
DEBU[0006] <app domain> sanitised as <app domain with _ instead of .> for new app  caller="/drone/src/cli/app/new.go:100 glob..func13"
DEBU[0006] copied & templated /Users/xxx/.abra/recipes/focalboard/.env.sample to /Users/xxx/.abra/servers/<server domain>/<app domain>.env  caller="/drone/src/pkg/config/app.go:375 TemplateAppEnvSample"
A new focalboard app has been created! Here is an overview:

+----------------------+------------+---------------------------------+
|        SERVER        |   RECIPE   |             DOMAIN              |
+----------------------+------------+---------------------------------+
| <server domain> | focalboard | <app domain> |
+----------------------+------------+---------------------------------+

You can configure this app by running the following:

    abra app config <app domain>

You can deploy this app by running the following:

    abra app deploy <app domain>

abra app ls:

+-------------+--------------------------------+
|   RECIPE    |             DOMAIN             |
+-------------+--------------------------------+
| {{ .Name }} | {{ .Name }}.example.com        |
+-------------+--------------------------------+
I used `abra app new focalboard` to create an app but when I used `abra app ls` it showed as `{{ .Name }} | {{ .Name }}.example.com` instead of the domain I selected I ran it with debug to get the output below (masked my domain name and user name) ``` DEBU[0000] read map[DOMAIN:{{ .Name }}.example.com LETS_ENCRYPT_ENV:production TYPE:{{ .Name }}] from /Users/xxx/.abra/recipes/focalboard/.env.sample caller="/drone/src/pkg/config/env.go:67 ReadEnv" DEBU[0000] successfully checked out refs/heads/main in /Users/xxx/.abra/catalogue caller="/drone/src/pkg/git/branch.go:97 CheckoutDefaultBranch" DEBU[0001] fetched latest git changes for /Users/xxx/.abra/catalogue caller="/drone/src/pkg/catalogue/catalogue.go:85 EnsureUpToDate" DEBU[0001] read recipe catalogue from file system cache in /Users/xxx/.abra/catalogue/recipes.json caller="/drone/src/pkg/recipe/recipe.go:684 readRecipeCatalogueFS" DEBU[0001] recipe metadata retrieved for focalboard caller="/drone/src/pkg/recipe/recipe.go:740 GetRecipeMeta" DEBU[0001] validated focalboard as recipe argument caller="/drone/src/cli/internal/validate.go:75 ValidateRecipe" DEBU[0001] no /Users/xxx/.gitignore exists, skipping reading gitignore paths caller="/drone/src/pkg/git/read.go:143 parseExcludesFile" DEBU[0001] discovered clean git status in /Users/xxx/.abra/recipes/focalboard caller="/drone/src/pkg/git/read.go:65 IsClean" DEBU[0001] successfully checked out refs/heads/main in /Users/xxx/.abra/recipes/focalboard caller="/drone/src/pkg/git/branch.go:97 CheckoutDefaultBranch" DEBU[0001] fetched latest git changes for focalboard caller="/drone/src/pkg/recipe/recipe.go:647 EnsureUpToDate" DEBU[0001] retrieved 1 servers: [<server domain>] caller="/drone/src/pkg/config/env.go:53 GetServers" ? Select app server: <server domain> ? Specify app domain <app domain> DEBU[0006] <app domain> sanitised as <app domain with _ instead of .> for new app caller="/drone/src/cli/app/new.go:100 glob..func13" DEBU[0006] copied & templated /Users/xxx/.abra/recipes/focalboard/.env.sample to /Users/xxx/.abra/servers/<server domain>/<app domain>.env caller="/drone/src/pkg/config/app.go:375 TemplateAppEnvSample" A new focalboard app has been created! Here is an overview: +----------------------+------------+---------------------------------+ | SERVER | RECIPE | DOMAIN | +----------------------+------------+---------------------------------+ | <server domain> | focalboard | <app domain> | +----------------------+------------+---------------------------------+ You can configure this app by running the following: abra app config <app domain> You can deploy this app by running the following: abra app deploy <app domain> ``` `abra app ls`: ``` +-------------+--------------------------------+ | RECIPE | DOMAIN | +-------------+--------------------------------+ | {{ .Name }} | {{ .Name }}.example.com | +-------------+--------------------------------+ ```
Owner

@ammaratef45 oops, that would be https://git.coopcloud.tech/coop-cloud/focalboard/src/branch/main/.env.sample, those {{ .Name }} values are from a previous reverted approach to templating, you can replace them with focalboard and it should work? If you have time, a PR to fix that in the sample env would be Very Welcome.

@ammaratef45 oops, that would be https://git.coopcloud.tech/coop-cloud/focalboard/src/branch/main/.env.sample, those `{{ .Name }}` values are from a previous reverted approach to templating, you can replace them with `focalboard` and it should work? If you have time, a PR to fix that in the sample env would be Very Welcome.
Sign in to join this conversation.
No description provided.