Skip to content

Conversation

@skull-squadron
Copy link

@skull-squadron skull-squadron commented Nov 20, 2016

$ bin/bundle exec pumactl -S tmp/puma.state restart
uninitialized constant Puma::StateFile

requiring puma doesn't require puma/state_file

Related: #901

@skull-squadron skull-squadron changed the title Fix uninitialized constant Puma::StateFile Really fix uninitialized constant Puma::StateFile Nov 20, 2016
@skull-squadron
Copy link
Author

(travis failure unrelated to this PR)

@nateberkopec
Copy link
Member

Can't repro, but I haven't tried Rails yet (which it looks like you're doing, using the Rails bundler binstub?)

@skull-squadron
Copy link
Author

bundler, Rails and springified

@skull-squadron
Copy link
Author

Ruby 2.3.1

@skull-squadron
Copy link
Author

skull-squadron commented Nov 20, 2016

Follow #1137 setup (basically rack and puma HEAD) and append to config/puma.rb

tmp_dir = File.expand_path('../../tmp', __FILE__)
pidfile "#{tmp_dir}/pids/puma.pid"
state_path "#{tmp_dir}/puma.state"

Run

bin/bundle exec puma 

Then, in another terminal

bin/bundle exec pumactl -S tmp/puma.state restart

@nateberkopec nateberkopec modified the milestone: 3.7.0 Nov 23, 2016
@nateberkopec nateberkopec merged commit 56135d1 into puma:master Dec 13, 2016
@skull-squadron skull-squadron deleted the fix-uninitialized-constant-Puma-StateFile branch December 27, 2016 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants