install_r45_on_ubuntu_1804l.../start_site.sh

9 lines
252 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 05:37:47 +00:00
bundle exec unicorn_rails -c config/unicorn.rb -E $rails_env $daemon_args $3 $(if [ ! -z "$4" ]; then echo '"'$4'"'; fi)