diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2012-03-15 15:12:27 -0700 |
---|---|---|
committer | Ryan Petrello <lists@ryanpetrello.com> | 2012-03-15 15:12:27 -0700 |
commit | 31fe5fb4373e474e366b2552141ba954a3dfda88 (patch) | |
tree | 72578187977c86fef6551faabc67aaa261280334 /pecan/commands | |
parent | d01be07aad33e506f661b220550b85234257908d (diff) | |
download | pecan-31fe5fb4373e474e366b2552141ba954a3dfda88.tar.gz |
Improving `pecan serve` output.
Diffstat (limited to 'pecan/commands')
-rw-r--r-- | pecan/commands/serve.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pecan/commands/serve.py b/pecan/commands/serve.py index 3d38ab9..a947348 100644 --- a/pecan/commands/serve.py +++ b/pecan/commands/serve.py @@ -1,6 +1,7 @@ """ Serve command for Pecan. """ +import os from pecan.commands import BaseCommand @@ -24,6 +25,7 @@ class ServeCommand(BaseCommand): from wsgiref.simple_server import make_server host, port = conf.server.host, int(conf.server.port) srv = make_server(host, port, app) + print 'Starting server in PID %s' % os.getpid() if host == '0.0.0.0': print 'serving on 0.0.0.0:%s, view at http://127.0.0.1:%s' % \ (port, port) |