Update start_site.sh

This commit is contained in:
BoHung Chiu 2022-04-07 14:56:21 +08:00
parent a40b75b891
commit ace258f6c1
1 changed files with 5 additions and 1 deletions

View File

@ -6,4 +6,8 @@ daemon_args=""
if [[ "$2" != "-ND" ]]; then
daemon_args="-D"
fi
bundle exec unicorn_rails -c config/unicorn.rb -E $rails_env $daemon_args $3 $(if [ ! -z "$4" ]; then echo '"'$4'"'; fi)
if [ -z "$4" ]; then
bundle exec unicorn_rails -c config/unicorn.rb -E $rails_env $daemon_args $3
else
bundle exec unicorn_rails -c config/unicorn.rb -E $rails_env $daemon_args $3 "$4"
fi