On 24/10/12 03:36, Bill Traynor wrote:
I have a wiki running an old installation of version
1.16.4. I'd very
much like to be able to track releases using Git as described in the
manual, however, I'm confused about how to do this. The manual says
to "If using Git, export the files into a clean location. Replace all
existing files with the new versions, preserving the directory
structure. The core code is now up to date.".
What does "export the files" mean? Does this mean to clone the core
repo somewhere first?
Is it really as simple as replacing files with new versions?
Yes, and running update.php when there were changes to the db schema (to
be safe, just run it after each pull, it will notice it has nothing to do).
Don't try to match old files with new ones. If one file is no longer
there, it's not used by the mediawiki (it may have been moved, renamed,
deleted...). As your files will be just LocalSettings.php and the images
folder, you clone to a new place and copy over those.
(As always, make backups in case you screw up, etc.)
What about the hidden files that designate my
directory as a clone of core,
do I copy those too?
If you want, you should also include .git Although you probably want not
to make it accessible through the web.
I'm sure I'm making this more complicated than
it really is, but I
really want to be able to upgrade in the future with a simple git
pull.
Clone to a folder.
Copy there LocalSettings.php, and images folder.
Run update.php
That folder is your new MediaWiki install.
To update: git pull, and rerun update.php
If you have extensions, clone them inside extensions and run git pull on
them as appropiate.