getkirby-v2 / starterkit

This is the deprecated starterkit for Kirby v2.
http://getkirby.com
Other
301 stars 94 forks source link

Best way to update? #22

Closed MaxAIPlayground closed 9 years ago

MaxAIPlayground commented 10 years ago

I have followed the installation instructions from http://getkirby.com/docs/installation/running-with-php, which are:

git clone --recursive https://github.com/getkirby/starterkit.git

Now, what's the best way to update to the latest getkirby/kirby and getkirby/panel? I have removed the sample files from the starterkit and some other stuff and would not want to pull down the starterkit again. Thanks!

username1290 commented 9 years ago

The docs at http://getkirby.com/docs/installation/updates say:

Manual updates

Kirby has two updatable components: The kirby folder and the panel folder. The most straight forward way to update is to fetch the latest ZIP file from http://download.getkirby.com and just replace those two folders on your server.

derhuerst commented 9 years ago

What about the following?

git submodule foreach git pull origin master

This updates the subrepos kirby and panel without touching the main repo.

lukasbestle commented 9 years ago

There are git pull --recurse-submodules and git submodule update --init --recursive, which together make sure every sub-submodule is initialized and updated.

derhuerst commented 9 years ago

Do they update the main repo? Because this is what he wants to avoid,right?

lukasbestle commented 9 years ago

Yeah, then just leave out the first command. The second one only deals with submodules, but makes sure they are updated recursively (meaning: the Toolkit is updated as well).

distantnative commented 9 years ago

I closed this as it seems to be solved. With its new version, the forum might also be the better place now for such discussions/questions: http://forum.getkirby.com :smiley: