how to kill a server rails code example
Example 1: rails kill server
kill -9 $(lsof -i tcp:3000 -t)
Example 2: how to stop rails server
#from the terminal, type:
(CTRL) + C
kill -9 $(lsof -i tcp:3000 -t)
#from the terminal, type:
(CTRL) + C