Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request #15 from davidlmorton/fix_status_messages
Browse files Browse the repository at this point in the history
Make status messages better
  • Loading branch information
mkiwala committed Jan 30, 2015
2 parents 84d30f3 + 01f6ae9 commit 2a6d604
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ptero_common/devserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def expand_children():


def cleanup(*args, **kwargs):
sys.stderr.write('Shutting down the devserver.\n')
expand_children()
try:
honcho_process.send_signal(signal.SIGINT)
Expand Down Expand Up @@ -85,15 +86,15 @@ def run(logdir, procfile_path, workers):
errlog = sys.stderr
else:
mkdir_p(logdir)
sys.stderr.write('Starting up devserver... logging to: %s' % logdir)
sys.stderr.write('Launching the devserver... logging to: %s\n' % logdir)
outlog = open(os.path.join(logdir, 'honcho.out'), 'w')
errlog = open(os.path.join(logdir, 'honcho.err'), 'w')

honcho_process = psutil.Popen(
service_command_line(procfile_path, workers), shell=False,
stdout=outlog, stderr=errlog)
time.sleep(3)
sys.stderr.write('devserver is now up...')
sys.stderr.write('The devserver is now up.\n')
children.update(psutil.Process().get_children(recursive=True))

honcho_process.wait()
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
flask
honcho
psutil
termcolor
2 changes: 0 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
coverage
honcho
nose >= 1.3.0
psutil

0 comments on commit 2a6d604

Please sign in to comment.