I'm curious to know how everyone here is managing server scripts across multiple servers. Before you jump with the obvious answer of subversion, CVS, etc... that is not the whole answer.
Yeah, a lot of questions. I guess my point is I'm really interested in *how* people are approaching this, and not just a list of tools. Also, we all probably know what we're supposed to be doing, but what are you actually doing? I'm also curious if the new style of RCS tools like bazaar or git provide any benefits over svn for this kind of application.
Answers from me:
I've used subversion in the past, and it seemed to work. I would "deploy" to the server by checking out and leaving the script dir as a working copy so any changes that were made could be committed. I handled differences in the machines by making a master config file that was not part of the checkout, and all scripts would read to get their machine-specific settings. I didn't auto-update using cron, I wanted to make sure I was there in case anything went wrong. Scripts were stored in a home directory that we used as the main storage location for everything that was "ours" on the server.
- How are you using revision control (if you are using it)?
- If you're not using it, what are you using?
- What revision control system are you using?
- How do you structure the repository?
- Where do you store your scripts on the server?
- Do you deploy scripts to servers by doing a checkout, or do you export them so any changes can't be checked-in from that export?
- How do you handle scripts that perform the same function but might have small differences? Config file? "if-then"s?
- How do you handle the change control process when you need to update? Are you making changes on a live server, or do you have a workflow where you use a dev server, do all sorts of testing, then review and deploy?
- Do you auto-update scripts from the repo using cron, or do you manually update?
- Do you include RPMs or other kinds of packages as part of the plan?
Yeah, a lot of questions. I guess my point is I'm really interested in *how* people are approaching this, and not just a list of tools. Also, we all probably know what we're supposed to be doing, but what are you actually doing? I'm also curious if the new style of RCS tools like bazaar or git provide any benefits over svn for this kind of application.
Answers from me:
I've used subversion in the past, and it seemed to work. I would "deploy" to the server by checking out and leaving the script dir as a working copy so any changes that were made could be committed. I handled differences in the machines by making a master config file that was not part of the checkout, and all scripts would read to get their machine-specific settings. I didn't auto-update using cron, I wanted to make sure I was there in case anything went wrong. Scripts were stored in a home directory that we used as the main storage location for everything that was "ours" on the server.
company-utils\. Due to the name used for the company, it always sounds like I'm swearing. Linux boxes get them in /usr/local/bin normally.