Skip to content

Instantly share code, notes, and snippets.

@skuhn
Created November 7, 2015 04:27
Show Gist options
  • Save skuhn/a14eb0fb656e26afefc1 to your computer and use it in GitHub Desktop.
Save skuhn/a14eb0fb656e26afefc1 to your computer and use it in GitHub Desktop.
environment ENV['RACK_ENV'] || 'development'
bind "tcp://0.0.0.0:#{http_port}"
if environment == 'development'
bind "tcp://0.0.0.0:#{https_port}"
bind "ssl://0.0.0.0:#{https_port}?key=./ssl/server.key&cert=./ssl/server.crt"
end
Error:
web.1 | /Users/stevenkuhn/.rvm/gems/ruby-2.2.1/gems/puma-2.9.1/lib/puma/configuration.rb:223:in `environment': wrong number of arguments (0 for 1) (ArgumentError)
web.1 | from config/puma.rb:13:in `_load_from'
web.1 | from /Users/stevenkuhn/.rvm/gems/ruby-2.2.1/gems/puma-2.9.1/lib/puma/configuration.rb:164:in `instance_eval'
web.1 | from /Users/stevenkuhn/.rvm/gems/ruby-2.2.1/gems/puma-2.9.1/lib/puma/configuration.rb:164:in `_load_from'
web.1 | from /Users/stevenkuhn/.rvm/gems/ruby-2.2.1/gems/puma-2.9.1/lib/puma/configuration.rb:37:in `load'
web.1 | from /Users/stevenkuhn/.rvm/gems/ruby-2.2.1/gems/puma-2.9.1/lib/puma/cli.rb:307:in `parse_options'
web.1 | from /Users/stevenkuhn/.rvm/gems/ruby-2.2.1/gems/puma-2.9.1/lib/puma/cli.rb:446:in `run'
web.1 | from /Users/stevenkuhn/.rvm/gems/ruby-2.2.1/gems/puma-2.9.1/bin/puma:10:in `<top (required)>'
web.1 | from /Users/stevenkuhn/.rvm/gems/ruby-2.2.1/bin/puma:23:in `load'
web.1 | from /Users/stevenkuhn/.rvm/gems/ruby-2.2.1/bin/puma:23:in `<main>'
web.1 | from /Users/stevenkuhn/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
web.1 | from /Users/stevenkuhn/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment