Permalink
Browse files

small cosmetic changes

  • Loading branch information...
1 parent a9fb6c8 commit cdd3d51aae8e59e5e5222b99dc9ab33bb7509da3 @regadas committed Feb 10, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 presstatic/__main__.py
@@ -57,20 +57,21 @@ def main():
site_builder.build()
if cli_args.http:
+ signal.signal(signal.SIGINT, signal_handler)
+
host, port = cli_args.http.split(':')
root_dir = os.path.join(cli_args.directory, cli_args.output)
- signal.signal(signal.SIGINT, signal_handler)
-
http_server = HttpServer(host, port, root_dir)
http_server.start()
watcher = Watcher(site_builder)
watcher.start()
with indent(4, quote='>>'):
- puts(colored.green("Serving {path}".format(path=root_dir)))
- puts(colored.yellow("@ {host}:{port} ".format(host=host, port=port)))
+ puts(colored.green("Serving {path} @ {host}:{port}".format(path=root_dir,
+ host=host,
+ port=port)))
signal.pause()

0 comments on commit cdd3d51

Please sign in to comment.