Update sh file.

This commit is contained in:
BoHung Chiu 2022-06-27 16:36:05 +08:00
parent a95cfb9586
commit 6b1fadc48c
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -1,3 +1,4 @@
#/bin/bash
rails_env=$1
if [ -z $rails_env ]; then
rails_env=development