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