install_r45_on_ubuntu_1804l.../start_site.sh

14 lines
332 B
Bash
Raw Normal View History

2022-06-27 08:36:05 +00:00
#/bin/bash
2022-03-24 15:21:34 +00:00
rails_env=$1
if [ -z $rails_env ]; then
2022-04-07 03:42:17 +00:00
rails_env=development
2022-03-24 15:21:34 +00:00
fi
2022-04-07 03:42:17 +00:00
daemon_args=""
if [[ "$2" != "-ND" ]]; then
daemon_args="-D"
fi
2022-04-07 06:56:21 +00:00
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