Current time: 11-26-2024, 09:30 PM Hello There, Guest! (LoginRegister)


Post Reply 
How to setup a server to follow development?
Author Message
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #21
RE: How to setup a server to follow development?
You have to modify
Quote:cd ..
rm -fRv "${TRUNK_DIR}"
/etc/init.d/apache2 restart
/etc/init.d/bind9 restart
in
Quote:cd /
rm -fRv "${TRUNK_DIR}"
/etc/init.d/apache2 restart
/etc/init.d/bind9 restart
(This post was last modified: 05-16-2008 02:03 AM by sci2tech.)
05-16-2008 02:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #22
RE: How to setup a server to follow development?
Thanx sci2tech. It works. Edited also in Wiki Smile
05-16-2008 02:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #23
RE: How to setup a server to follow development?
To update your local tree instead of downloading it all each run (saves resources on you AND the isp-control svn server!) you only need to replace the download block with this one and adjust the TRUNK_DIR variable:

Code:
# TRUNK_DIR now specifies the path to the ispcp folder, not it's parent
TRUNK_DIR="/usr/src/ispcp"

#download/update trunk
if [ -d ${TRUNK_DIR} ]; then
        cd ${TRUNK_DIR}
        svn up
else
        mkdir -p ${TRUNK_DIR}
        svn checkout http://www.isp-control.net/ispcp_svn/trunk/ ${TRUNK_DIR}
        cd ${TRUNK_DIR}
fi
05-16-2008 02:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #24
RE: How to setup a server to follow development?
Kilburn you are absolutly right. This is the way it should be done from the start. I`ll modify the wiki too.
(This post was last modified: 05-16-2008 02:46 AM by sci2tech.)
05-16-2008 02:43 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #25
RE: How to setup a server to follow development?
What's the advantage of "svn up" compared to "svn checkout"? "svn checkout" also only updates the copy if it already exists.
05-16-2008 02:55 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #26
RE: How to setup a server to follow development?
I just never tried it but you're right, checkout and update work exactly the same way when the folder exists! New code then:

Code:
#download/update trunk
mkdir -p ${TRUNK_DIR}
svn checkout http://www.isp-control.net/ispcp_svn/trunk/ ${TRUNK_DIR}
cd ${TRUNK_DIR}

Oh, and get rid of this line:
Code:
rm -fRv "${TRUNK_DIR}"

Much simpler, thanks Cube
(This post was last modified: 05-16-2008 03:07 AM by kilburn.)
05-16-2008 03:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #27
RE: How to setup a server to follow development?
Updated Nightly Updatescript: http://www.isp-control.net/documentation...atenightly to remove old ispcp version (missed a bug without this modify)
05-20-2008 02:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #28
RE: How to setup a server to follow development?
Sometimes the package list is also changed. What do you think about to insert also an apt-get update /upgrade and check the package list also?

I know, this is really lazy Smile
05-20-2008 12:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #29
RE: How to setup a server to follow development?
Done Tongue
05-20-2008 04:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #30
RE: How to setup a server to follow development?
Wow, very Quick Smile thanks again sci2tec
05-20-2008 05:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 4 Guest(s)