fmbiete / Z-Push-contrib

Z-Push fork with changes that I will try to contrib
GNU Affero General Public License v3.0
135 stars 62 forks source link

Documentation - Update path #217

Closed benbeton closed 9 years ago

benbeton commented 9 years ago

Hi,

I'm using this a few months now and it is working great. A few times in the past days I thought about keeping the installation up to date. So I search in the Doc, but there is now documentation how to update the installation.

can anyone describe the necessary steps? Thx!

fmbiete commented 9 years ago

Keeping the installation up to date is pretty easy, although a bit time consuming.

  1. Get the last code in a temporal folder
  2. Diff config.php files (there is one config in the root folder and in the folder of each backend you use). Apply your changes
  3. Make a backup of your z-push folder
  4. Move your temporal folder to the z-push folder
mporcheron commented 9 years ago

For reference: I've been doing this using git rebasing (with a branch for personal configuration changes) as this makes it a lot less manual.

benbeton commented 9 years ago

sounds interesting, how to achieve, that all files except the config are update on the personal branch?

mporcheron commented 9 years ago
Setup
  1. Clone the repository to your web server
  2. git checkout -b config to create the new config branch with the local configuration
  3. Create your local configuration changes
Updating
  1. Backup the local repository (or even better: also do this on a non-live copy)
  2. git checkout master
  3. git pull origin master to update the local master branch
  4. git checkout config
  5. git rebase master to rebase the offline config branch
  6. Solve the conflicts (which will occur if the configuration files have been changed in the master)

Edit: Added where you make the config changes

fmbiete commented 9 years ago

@mporcheron Kudos!! :100:

Do you mind if I put those in a INSTALL_UPDATE_FROM_GIT file?

mporcheron commented 9 years ago

Nope, go ahead 👍🏻