Skip to content

Commit

Permalink
ensure port cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tilgovi committed Nov 30, 2012
1 parent 9e339a5 commit 1a503ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion h/script.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ def run(args):
if not len(args): # Default to dev mode if not len(args): # Default to dev mode
args.append('development.ini') args.append('development.ini')
args.append('--reload') 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) main(['h'] + args)




Expand Down

0 comments on commit 1a503ff

Please sign in to comment.