Just enough ChatOps.
Install the appropriate Ruby version with asdf. Then, from the project root:
bundle install
To start the unicorn server as a daemonized process on port 8000, issue
unicorn -c unicorn.rb -E production -p 8000 -D
To kill or restart the unicorn server, issue killall unicorn
or identify the pids for unicorn and kill
them.
lsof -iTCP -sTCP:LISTEN -P
# COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
# ...
# unicorn 14871 root 11u IPv4 960401 0t0 TCP *:8000 (LISTEN)
# unicorn 14874 root 11u IPv4 960401 0t0 TCP *:8000 (LISTEN)
# unicorn 14876 root 11u IPv4 960401 0t0 TCP *:8000 (LISTEN)
# ...