install_r45_on_ubuntu_1804l.../start_site.sh

13 lines
321 B
Bash
Raw Normal View History

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