Upgrade env config only #440
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It would be nice to have a way to change the .env config without executing
abra app undeployandabra app deployagain, which can lead to hidden upgrades: coop-cloud/organising#434Something like
abra app upgrade --env / -EThe actual way is to run
abra app ls -Sto find out the current version. Checkout the recipe repo into this version and then runabra app upgrade -C. This could be combined into one command.@moritz I'm not sure I understand this one. What in the
.envdo you want to update? You are mentioning versions but no versioning information is currently stored in the.envfiles?For the version deployment issues, yeh, that is a pain currently. You could
upgrade/rollbackcurrently but then there is no auto-complete on the versions. I think coop-cloud/organising#204 would solve this?You can also use
abra app version. I just checked that and it says in the--help:But actually, I don't think that's correct. I'll open a separate ticket.
abra app upgradeonly works if there is a new version, but often I want to update only the .env configuration without changing the deployed version and without undeploying everything. Therefore I thought something likeabra app upgrade --env / -Ewould be nice. Or maybeabra app env-updateto avoid any confusion with version upgrades.Using this workaround I can update env variables and only the container that are affected by the changes are restarted.
I was going to say, "isn't this
upgrade --force/deploy --force"? But then I ran into coop-cloud/organising#444 🙃I thought
deploy --forcedoes this?You still have to manually manage the versions carefully because coop-cloud/organising#434 / coop-cloud/organising#204 are not solved. We should get around to this soon.
Nice
upgrade --force / deploy --forceis almost doing what I want, despite the version issue. Is there a difference between these two commands? Also betweenupgrade -C / deploy -C? This is a bit confusing.Yeh, this was some early UI/UX that nobody really questioned until now 😆 I'm pretty sure both of those are exactly the same but I haven't checked the code again. Maybe we should make change here... you can't force the upgrade? 🤷♀️
OK, let's converge on #434 following coop-cloud/organising#434 (comment). Gathering energy for a speedrun...
Also, you can now do
abra app version <domain>and get the version and then run:abra app deploy <domain> <version> -fwhich is more repeatable. Hopefully with pinned & synced versions, this will more automated in the future.