How to setup a server to follow development? - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Development Area (/forum-1.html) +--- Forum: General discussion (/forum-11.html) +--- Thread: How to setup a server to follow development? (/thread-3198.html) |
RE: How to setup a server to follow development? - gOOvER - 05-11-2008 08:58 PM sci2tech Wrote:But if you are using svn you should remove all folder named .svn When you use this for checkout, you haven't any .svn dir's: Code: svn export -r xxxx http://www.isp-control.net/ispcp_svn/trunk/ xxxx = Trunk Revision Maybe we can insert an part into the script to export an Trunk Version from SVN. So we can build an complete Nightlyupdate Script. Quote: Yes, the /parts should also be copied during update. Maybe we should also integrate an Commandline for the mysql password. Edit: i create an Wikipage for the Script. When you change something, please do this in the Wiki. http://www.isp-control.net/documentation/start/scripts/updatenightly RE: How to setup a server to follow development? - Cube - 05-11-2008 10:37 PM AFAIR it's not possible to update an export, so you would have to download the whole trunk each time. Therefore checkout is better. I'm using such a script for months now. But I always look at the changesets and do the changes in the templates and configs manually. RE: How to setup a server to follow development? - sci2tech - 05-11-2008 10:57 PM I did what lazy people i`ll do: Quote:svn checkout http://www.isp-control.net/ispcp_svn/trunk/from here Quote:http://www.isp-control.net/ispcp/wiki/releases_svn RE: How to setup a server to follow development? - ispcomm - 05-12-2008 02:46 AM I updated the script to delete .svn directories in /var/www and to allow for some customization of the directories. Pls. check as I don't use svn and hence .svn directories are not produced in my trunk. ispcomm. RE: How to setup a server to follow development? - sci2tech - 05-12-2008 07:21 AM Tested and it`s ok. But i`m even lazzyer then you Quote:#!/bin/shWorked for me and i have added ../parts/ copy. Now i can update with cron. RE: How to setup a server to follow development? - ispcomm - 05-12-2008 08:23 PM sci2tech Wrote:Tested and it`s ok. But i`m even lazzyer then youThat is being lazy !!! Carefull with the cron as sometime the nightly is broken. I can't update via cron because I have my own repository where I keep mods and I don't want to pull changes automatically w/out looking at the timeline/diff. Merges are rare but they still occur. Also few of my parts are different because of some local and historic constraints so I have to do that by hand as well. ispcomm. RE: How to setup a server to follow development? - sci2tech - 05-13-2008 03:36 AM It`s lazy but not crazy. As a matter of facts, it`s searching for trouble becose this force me to learn more. It`s not a productive server, it`s only for playing. I also added Quote:tar czpf "ispcp_backup-etc-`date +'%Y-%m-%d %H-%M-%S'`.tar.gz" /etc/ispcp/, if something go wrong i can allways roll back changes. Ispcp database it`s also saved via cron BEFORE runing this cron. I also have a background with vhcs2, and I also want to migrate a server to ispcp. This is a reason for serching for trouble . For thos who may need, this is the script for save all databases from my system Quote:#!/bin/bash.my.cnf Quote:[client]I don`t take credit for this it`s found on net and slightly modified . RE: How to setup a server to follow development? - gOOvER - 05-14-2008 12:13 PM Wow, i love the Script. I test it yesterday and it seems to work. I got some Errors at the End of the Script, but i think all is OK. I used the Version from sci2tech. Changes in ispcp.conf you have to do by Hand. WHEN YOU CHANGE SOMETHING AT THE SCRIPT NOW, PLEASE DO THIS IN THE WIKI. RE: How to setup a server to follow development? - gOOvER - 05-16-2008 01:36 AM Ok, can someone help me by this Error: Code: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory This Error happens at the end of the Script. RE: How to setup a server to follow development? - kilburn - 05-16-2008 01:44 AM I think it would be better to store the trunk version in /usr/src, so you only 'svn up' each time instead of downloading the whole tree... |