Commits

Vincent Hillenbrink  committed aff7b41

runserver checks the exit code of Djano runserver

  • Participants
  • Parent commits 3cefb73

Comments (0)

Files changed (1)

File bin/djenvlib

 
     while true; do
         djadmin runserver $ip$port $*
-        echo "Server exited - restarting" 1>&2
+        if [ $? -ne 0 ]; then
+            echo "Server exited with errors" 1>&2
+            return 1
+        fi
         sleep 0.5
     done
 }