Hello,
Now I'm trying to create svn post-commit hook, who will update dev
server svn and restart server.
post-commit
#!/bin/bash
PROJDIR="/opt/system/chill"
PIDFILE="$PROJDIR/chill.pid"
SOCKET="$PROJDIR/chill.sock"
cd $PROJDIR && svn update && ./restart.sh
restart.sh
#!/bin/bash
# Replace these three settings.
PROJDIR="/opt/system/chill"
PIDFILE="$PROJDIR/chill.pid"
SOCKET="$PROJDIR/chill.sock"
cd $PROJDIR
if [ -f $PIDFILE ]; then
kill `cat -- $PIDFILE`
rm -f -- $PIDFILE
fi
exec /usr/bin/env - \
PYTHONPATH="../python:.." \
./manage.py runfcgi socket=$SOCKET pidfile=$PIDFILE
but I got error on restart.sh execution ": No such file or directory"
don't know what is the problem, help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---