Skip to content

Instantly share code, notes, and snippets.

@StephanX
Last active August 29, 2015 14:03
Show Gist options
  • Save StephanX/5f8ac46e28a5e58fc917 to your computer and use it in GitHub Desktop.
Save StephanX/5f8ac46e28a5e58fc917 to your computer and use it in GitHub Desktop.
root@somehost:/opt/my-app/current# ruby --version
ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-linux]
root@somehost:/opt/my-app/current# bundle exec pumactl -F config/puma.rb --state tmp/my-app.state restart
Puma starting in single mode...
* Version 2.8.2 (ruby 2.0.0-p451), codename: Sir Edmund Percival Hillary
* Min threads: 0, max threads: 16
* Environment: development
loaded methods.rb
tried to load...
* Listening on tcp://0.0.0.0:2121
* Daemonizing...
root@somehost:/opt/my-app/current# ps aux | grep puma | grep -v grep
root 26495 0.0 0.6 301712 25488 ? Sl 19:04 0:00 puma 2.8.2 (tcp://0.0.0.0:2121)
root@somehost:/opt/my-app/current# bundle exec pumactl -F config/puma.rb --state tmp/my-app.state restart
Command restart sent success
root@somehost:/opt/my-app/current# ps aux | grep puma | grep -v grep
root@somehost:/opt/my-app/current# bundle exec pumactl -F config/puma.rb --state tmp/my-app.state restart
Puma starting in single mode...
* Version 2.8.2 (ruby 2.0.0-p451), codename: Sir Edmund Percival Hillary
* Min threads: 0, max threads: 16
* Environment: development
* Listening on tcp://0.0.0.0:2121
* Daemonizing...
root@worker1:/opt/ops-api/current# ps aux | grep puma | grep -v grep
root 26536 0.0 0.6 301716 25536 ? Sl 19:04 0:00 puma 2.8.2 (tcp://0.0.0.0:2121)
root@somehost:/opt/my-app/current# cat config/puma.rb
rackup './config/web.ru'
daemonize
pidfile 'tmp/my-app.pid'
state_path 'tmp/my-app.state'
stdout_redirect 'log/out.my-app.log', 'log/err.my-app.log', true
bind 'tcp://0.0.0.0:1234'
root@somehost:/opt/my-app/current# cat Gemfile.lock
GIT
remote: git://github.com/puma/puma.git
revision: 5d189197fb8f476ad94bfdbbb63d133f684d0ee3
specs:
puma (2.8.2)
rack (>= 1.1, < 2.0)
GEM
remote: https://rubygems.org/
specs:
backports (3.6.0)
dotenv (0.11.1)
dotenv-deployment (~> 0.0.2)
dotenv-deployment (0.0.2)
multi_json (1.10.1)
rack (1.5.2)
rack-protection (1.5.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
sinatra (1.4.5)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
sinatra-contrib (1.4.2)
backports (>= 2.0)
multi_json
rack-protection
rack-test
sinatra (~> 1.4.0)
tilt (~> 1.3)
tilt (1.4.1)
PLATFORMS
ruby
DEPENDENCIES
dotenv
puma!
sinatra
sinatra-contrib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment