From 4096f649c892a619114e7b8f23efd6c7831c5376 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Sat, 4 Sep 2010 12:03:36 -0300 Subject: [PATCH] Adding run command to ./script/production --- script/production | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/script/production b/script/production index cdcd6b4..4c11386 100755 --- a/script/production +++ b/script/production @@ -36,6 +36,13 @@ case "$ACTION" in do_$ACTION ;; + run) + do_start + echo "=> Running in production mode. Hit ctrl-C to stop." + trap do_stop INT TERM + tail -n 0 -f log/production.log + ;; + restart) do_stop sleep 1 @@ -43,7 +50,7 @@ case "$ACTION" in ;; *) - echo "usage: $0 start|stop|restart" + echo "usage: $0 start|stop|restart|run" exit 1 ;; esac -- libgit2 0.21.2