From 6b1fadc48cb5d74876c4337c06b7bf86ded9310a Mon Sep 17 00:00:00 2001 From: Bohung Date: Mon, 27 Jun 2022 16:36:05 +0800 Subject: [PATCH] Update sh file. --- close_site.sh | 1 + start_site.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/close_site.sh b/close_site.sh index c72e107..7871d36 100644 --- a/close_site.sh +++ b/close_site.sh @@ -1 +1,2 @@ +#!/bin/bash UNICORN_PID="$(fuser tmp/pids/unicorn.sock tmp/sockets/unicorn.sock tmp/unicorn.sock) $(cat tmp/pids/unicorn.pid)" && kill -s TERM $UNICORN_PID \ No newline at end of file diff --git a/start_site.sh b/start_site.sh index 4788adc..e49daed 100644 --- a/start_site.sh +++ b/start_site.sh @@ -1,3 +1,4 @@ +#/bin/bash rails_env=$1 if [ -z $rails_env ]; then rails_env=development