Skip to content

Commit f29f3c7

Browse files
authored
Added support for head call for server up checks (#50)
Also added log line with local url for quick copy-paste when using locally
1 parent c7ed5ea commit f29f3c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def get(self):
7777
clean_up_old_images()
7878
self.render("index.html", cookie_key=app_cookie,
7979
image_captions=get_image_captions(self.current_user))
80+
head = get
8081

8182

8283
class DetailHandler(BaseHandler):
@@ -318,6 +319,8 @@ def main():
318319
raise SystemExit
319320
logging.info("Metadata prepared in %s seconds", end - start)
320321

322+
logging.info("Web application available locally at:")
323+
logging.info("\thttp://localhost:" + str(options.port))
321324
logging.info("Use Ctrl+C to stop web server")
322325
ioloop.IOLoop.current().start()
323326

0 commit comments

Comments
 (0)