didactic_cudgel (
didactic_cudgel) wrote in
dw_dev2011-05-17 02:08 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Entry tags:
Keeping production current.
I run a production DW-powered site and I want to keep it up to date with the latest code fixes and features.
In asking #dreamwidth-dev about following this procedure: http://wiki.dwscoalition.org/notes/Dev_Maintenance firefoxfey recommended that I find out what the latest post-release final tag is an update only to that tag to avoid getting untested dev features, but didn't know the procedure. I was advised to ask here and so I am :)
If I want to keep my code current, but reduce the chance of pulling down untested code, how do I find and limit code to the post-release final tag?
Also, Fey suggested making sure that I'm aware of any database changes. Are those announced separate from code pushes?
In asking #dreamwidth-dev about following this procedure: http://wiki.dwscoalition.org/notes/Dev_Maintenance firefoxfey recommended that I find out what the latest post-release final tag is an update only to that tag to avoid getting untested dev features, but didn't know the procedure. I was advised to ask here and so I am :)
If I want to keep my code current, but reduce the chance of pulling down untested code, how do I find and limit code to the post-release final tag?
Also, Fey suggested making sure that I'm aware of any database changes. Are those announced separate from code pushes?
no subject
As for database changes, we've only had one of those so far and we've announced it in this community using the "dversions" tag.
no subject
When I run that, I get this:
I don't see 1.0.0. I'm confused, I'm sorry.
no subject
no subject
For those, I'd just run cvsreport itself ( not with -sync ) and if update-db-general.pl, then you've got a simple changes.
db-update should be ran every update, anyway.
Any more complicated changes will be as
It may be safest to wait a week or two after the code push before updating to the latest tag ( and stay one push behind until then ), so we can catch any lingering issues ( we are already on 1.0.1 due to some issues from the push )
For a production site, to minimize surprises:
Full Update/Upgrade/Procedure
Does that look right? I could also, I assume, create the update scripts in the Dev_Maintenance wiki (where a lot of this info came from) and replace the relevant parts in my list here.
Re: Full Update/Upgrade/Procedure
6. You should not be overriding any files, really -- because you will miss out on any changes, and they could cause incompatibilities -- besides the config files.
What are you overriding? -- anything that DW has needed to should have a local component or a hook.
6b. See:
http://hg.dwscoalition.org/dw-nonfree/file/6883b468b6b7/schemes/_dreamwidth.tt
http://hg.dwscoalition.org/dw-nonfree/file/6883b468b6b7/schemes/gradation-vertical-local.tt
http://hg.dwscoalition.org/dw-nonfree/file/6883b468b6b7/cgi-bin/DW/Hooks/SiteScheme.pm
And then use grad-vertical-local in all your config places.
But any file you create yourself should be in your cvs/<blah> directory.
7. You should also do that to the closest tag before [tagname] ( or past, if there's a different minor ) in:
dw-free
bml
js
perlbal
s2
8. No, compare the config files with 'hg diff -r <last tag> etc/config.pl' ( and the same with the two templates in doc ) and merge in any relevant looking changes ( new options, etc... )
11. Yep, and you can 'cvsreport.pl --diff filename' if you want to see what changed.
Re: Full Update/Upgrade/Procedure
6b. Thank you :)
7. Are you saying to run hg update from each folder?
8. Thank you
11. Neat! :)
Thank you all. I have a history of jumping feet first into things I don't understand even a little. Same thing happened with phpBB3. I knew this would be complex, but, as always, I underestimated the complexity and overestimated my ability. You've helped make this so much more painless. Not only I appreciate it, but my users do too. :)
no subject
Certain things look for a local file, those being, the database updater for the s2 layer list and update-db-general, as well as a few other things.
7. Yeah, Tankfully most others are very rarely updated, but you don't want to suck something in accidentally.