Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update script #818

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

Update script #818

wants to merge 7 commits into from

Conversation

d-buchmann
Copy link
Contributor

Update script that WorksForMe*
Might be a starting point for someone to develop a more useful general update solution (#720).

The constants have to be adjusted to your local (bare metal) environment.
I don't have enough experience with docker to approach that.

The (guided) update process goes through ~4 stages:
0: check for new release
1: put current site into maintenance mode (requires an extra vhost to be set up...meh)
2: backup partdb database (only mysql at the moment...meh); git pull
3: Build according to the docs, transfer required files to testing location (yet another vhost...)
4: Transfer testing site to live enviroment, end maintenance mode

The process can be interrupted at any stage, by errors or by user interaction.
Resumption through current stage stored in a file with the name of $FILE. While I'm writing this, I think it's easier to use an env var.
Also, media files are at least copied twice, so performance gain is possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant