Support env upgrading with abra app upgrade #504

Open
opened 2025-02-12 14:30:07 +00:00 by stevensting · 5 comments

From my point of view it would be nice if abra could support the upgrade process also for the env file, e.g.

  • removing env vars not needed anymore
  • adding new mandatory env vars from .env.sample
  • adding new optional env vars

Idea: let the operator choose one of two ways:

  • create a fresh env file based on the new .env.sample and fill out the values from the existing env file for the available vars
  • stick with the existing env file (in case special comments were inserted etc) and check which env vars present in .env.sample exist already in env file and add all missing ones. Also removing old ones.
From my point of view it would be nice if abra could support the upgrade process also for the env file, e.g. - removing env vars not needed anymore - adding new mandatory env vars from .env.sample - adding new optional env vars Idea: let the operator choose one of two ways: * create a fresh env file based on the new .env.sample and fill out the values from the existing env file for the available vars * stick with the existing env file (in case special comments were inserted etc) and check which env vars present in .env.sample exist already in env file and add all missing ones. Also removing old ones.
Owner

Sounds like a useful addition! We have something in line with this logic for the second option in abra app check. Do you have a CLI design proposal for this interface @stevensting?

I would probably not implement this now in the current release candidate phase (unless someone really wants it, I won't stop you!) and aim for the next release (we're gonna aim for smaller iterations).

Sounds like a useful addition! We have something in line with this logic for the second option in `abra app check`. Do you have a CLI design proposal for this interface @stevensting? I would probably not implement this now in the current release candidate phase (unless someone really wants it, I won't stop you!) and aim for the next release (we're gonna aim for smaller iterations).
decentral1se added the
enhancement
design
labels 2025-02-12 14:58:56 +00:00
Owner

Fully agree with the suggestion @stevensting, indeed I think the next step is to design the UI. I wonder if something like apt's "What would you like to do about it" menu could be useful inspiration? (example)

Fully agree with the suggestion @stevensting, indeed I think the next step is to design the UI. I wonder if something like `apt`'s "What would you like to do about it" menu could be useful inspiration? ([example](https://serverfault.com/q/527789))
Owner

@p4u1 (and I) want to focus on improving how abra reports errors and shares options on how to proceed when faced with different scenarios after the current release. any prototype ideas for design / direction is really welcome! i do very much like a lot of what apt does 😁

@p4u1 (and I) want to focus on improving how `abra` reports errors and shares options on how to proceed when faced with different scenarios after the current release. any prototype ideas for design / direction is really welcome! i do very much like a lot of what `apt` does 😁
decentral1se changed title from support env upgrading with ´abra app upgrade´ to Support env upgrading with `abra app upgrade` 2025-03-23 09:44:14 +00:00
Member

both initial ideas sound way better than dropping operators into a mergetool :3

both initial ideas sound way better than dropping operators into a mergetool :3
Member
> [Alakazam is updating the env files automatically](https://git.coopcloud.tech/coop-cloud/wallabag/pulls/4#issuecomment-24072)
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#504
No description provided.