You can use puma control to start / stop the puma server. If you know where the puma.pid file is puma.pid (for Mac, usually "#{Dir.pwd}/tmp/pids/puma.pid" ), you can do:
bundle exec pumactl -P path/puma.pid stop
To set the path to the pid file or other parameters (for example, to unmount), you can create a puma configuration. You can find an example here . And then start and stop the server only with the configuration file:
bundle exec pumactl -F config/puma.rb start
You can also restart and check the status as follows:
bundle exec pumactl -F config/puma.rb restart bundle exec pumactl -F config/puma.rb status
source share