The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
How to simplify upgrading a customized vbulletin
![]() Note: this article's suggestions work best when doing upgrades between vBulletin releases with the same major version (i.e. 4.x.a to 4.y.b) though it can be used with more work on upgrades between major versions. Requirements
Overview of how this works This system works by having two git repositories setup on your computer, one to simulate the upstream changes made to vBulletin and the second to be the local, downstream, repository where you record the changes you've made to your vBulletin install. When a new version of vBulletin is released that you are upgrading to you grab the new version of vBulletin, upload it to your server and let the marvels of git rebase save you hours if not days of your life. Step 1 - Setup the vBulletin repository
Step 2 - Setup the local repository for your vBulletin customizations
Notes:
Step 3 - Install base vBulletin
Step 4 - Add your vBulletin customizations
Step 5 - Upgrading your vBulletin version To upgrade your version of vBulletin you follow mostly the same process as in Step 3 above with a few critical differences, noted in red and blue text.
You can repeat steps 4 & 5 as often as necessary, mostly you'll be doing step 4 as you install plugins, custom code, or alter the core code for vBulletin. |
#3
|
|||
|
|||
![]()
Heya!
thank you so much for the article! I still have a question As far as I understood the changes made in my local repository (so eg /var/www/) are never pushed? I am still confused as to how this exactly works, but shouldn't changed that have been commited also be pushed? Especially if you were to have a dev environment and a live environment. My plan is to "work" on the dev env, to rebases etc, and once done push all those commits to live. Or - if absolutely need be - do changes on live and push them back to the repo to also have them on dev As far as I can see this does not work? Seeing that the changes made in /var/www are never pushed? Or am I missing something? Again thank you so much for posting! |
#4
|
||||
|
||||
![]() Quote:
Something like: [pre] vb repo | dev repo | live repo [/pre] The dev repo is the second repo from the article. You use it to deal with upstream changes from vbulletin as well as your own customizations. Once you have all of that dealt with you can fetch the changes in the live repo and reset to HEAD, which will update/add/delete all relevant files. |
#5
|
|||
|
|||
![]()
thanks for the very quick reply!
I am not sure I understand correctly. the dev repo has the vb repo as remote, so all changes that are pushed will land there? Right now I can't push any changes made in dev: PHP Code:
|
#6
|
||||
|
||||
![]()
No you don't push to the vb repo, since you have to treat it as a repo you can't edit, which you can't since you have no control over the code vb creates. You fetch from the dev repo on your live repo. All work on your dev repo will be in a branch that isn't HEAD so you aren't fetching non-head commits from your live site.
|
#7
|
|||
|
|||
![]()
ah I see!
It's just that your Step 4 did not say anything about using a branch - that's maybe where my confusion came from |
#8
|
||||
|
||||
![]()
That's because in the instructions above I leave how you administer your repo and how you want to handle doing your changes to yourself. The best practice for using git is that any changes you make to your repo are done on a branch and when finalized merged back into HEAD. The instructions are for setting up a simple method of applying vbulletin changes to a location where you have your own customized changes to vbulletin. How you track your customization to the vbulletin code base is up to you, as is any additional infrastructure you want to add around the above process.
|
#9
|
|||
|
|||
![]()
ok
![]() I am fairly new to git, I do understand the basics but rebases etc are a bit over my head atm - thats the reason behind my numerous questions ![]() Thanks again! Your help made things and my future env setup a lot clearer! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|