From 8c9b53419d1fd9ba5ce2b4aa0664c6640d777c31 Mon Sep 17 00:00:00 2001 From: xxrenzhe Date: Wed, 28 Jan 2015 19:04:48 +0800 Subject: [PATCH] Update runserver add sudo to start runserver, avoid starting runserver failed --- runserver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runserver b/runserver index 62644e442..9a5211734 100755 --- a/runserver +++ b/runserver @@ -11,7 +11,7 @@ if [ $? != '0' ];then fi node $websocket_file & if [ -f $manage_file -a -e $manage_file ] && [ -f $log_handler_file -a -e $log_handler_file ];then - $manage_file runserver 0.0.0.0:80 &> logs/access.log & + sudo $manage_file runserver 0.0.0.0:80 &> logs/access.log & $log_handler_file &> logs/handler.log & else echo "manage.py or log_handler.py isn't exist or executable."