From 4650d198a6898eb3c28e46abfd7225d850a26040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Sat, 16 Jun 2018 14:15:16 +0200 Subject: [PATCH 1/2] print info where the server is located. Django does this nicely. --- pelican/tools/templates/develop_server.sh.jinja2 | 1 + 1 file changed, 1 insertion(+) diff --git a/pelican/tools/templates/develop_server.sh.jinja2 b/pelican/tools/templates/develop_server.sh.jinja2 index 7d20fd22..f8bce79a 100755 --- a/pelican/tools/templates/develop_server.sh.jinja2 +++ b/pelican/tools/templates/develop_server.sh.jinja2 @@ -80,6 +80,7 @@ function start_up(){ return 1 fi echo 'Pelican and HTTP server processes now running in background.' + echo "You can access the server now at http://localhost:$port with your browser." } ### From 5cf6a690074d611fc2d9286301e72b21192e8d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Sat, 16 Jun 2018 14:38:46 +0200 Subject: [PATCH 2/2] default port 8000 --- pelican/tools/templates/develop_server.sh.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/tools/templates/develop_server.sh.jinja2 b/pelican/tools/templates/develop_server.sh.jinja2 index f8bce79a..8a507564 100755 --- a/pelican/tools/templates/develop_server.sh.jinja2 +++ b/pelican/tools/templates/develop_server.sh.jinja2 @@ -87,7 +87,7 @@ function start_up(){ # MAIN ### [[ ($# -eq 0) || ($# -gt 2) ]] && usage -port='' +port='8000' [[ $# -eq 2 ]] && port=$2 if [[ $1 == "stop" ]]; then