Upgrade env config only #440
Closed
opened 2023-04-06 15:49:18 +00:00 by moritz
·
7 comments
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
No labels
enhancement
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#440
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.