Commits

Anonymous committed e5e8184

Updated .hgignore from gjsb

  • Participants
  • Parent commits 89479e1

Comments (0)

Files changed (2)

 syntax:glob
+
+deploy/vhosts-development.conf
 */deploy/local.wsgi
 */settings/env/local.py
+*/bin/local.sh
+*.swp
 *.pyc
-*.swp
-.DS_Store
+*.tmproj
+*.*~
+*~
+db/*.db
+db/*.sqlite
+db/*.sqlite3
+tmp/*
+logs/*.log
 pip-log.txt
 docs/_build
-db/sqlite.db
+PYSMELLTAGS
+PYSMELLTAGS.*
+.DS_Store

File scripts/djenv.mercurial

 export hgpidfile=$PROJECT_ROOT/tmp/hgserve.pid
 export hgport=7100
 
-# Start hg server in daemon mode and open in browser
+# Start hg server in daemon mode and open first argument in browser
 function hgserve() {
     kill -0 `cat $hgpidfile 2>&1` > /dev/null 2>&1
     if [ ! $? -eq 0 ]; then
-        echo starting up
-        cdroot
+        cwd=`pwd`
+        cdjango
         hg serve --port $hgport --daemon \
             --pid-file $PROJECT_ROOT/tmp/hgserve.pid
         sleep 0.5
-        cd -
+        cd $cwd
     fi
 
     [ ! -z "$1" ] && open http://localhost:$hgport/$1