Permalink
Browse files

ensure port cleanup

  • Loading branch information...
tilgovi committed Nov 30, 2012
1 parent 9e339a5 commit 1a503ffe9435d159d85895c8ca45efe9382f44f9
Showing with 4 additions and 1 deletion.
  1. +4 −1 h/script.py
View
@@ -45,8 +45,11 @@ def run(args):
if not len(args): # Default to dev mode
args.append('development.ini')
args.append('--reload')
+ args.append('--monitor-restart')
- from pyramid.scripts.pserve import main
+ from pyramid.scripts.pserve import ensure_port_cleanup, main
+
+ ensure_port_cleanup([('0.0.0.0', 5000)])
main(['h'] + args)

0 comments on commit 1a503ff

Please sign in to comment.