capistrano-plugins / capistrano-unicorn-nginx

Capistrano tasks for automatic and sensible unicorn + nginx configuration
MIT License
175 stars 81 forks source link

ruby 2.5.0 erb syntax error, unexpected ')' #107

Closed tomprats closed 6 years ago

tomprats commented 6 years ago

Running cap production setup --trace produces the error. See below for the stack trace

** Execute nginx:setup
#<Thread:0x00007fa43888f098@/Users/tom/.rvm/gems/ruby-2.5.0/gems/sshkit-1.15.1/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
    7: from /Users/tom/.rvm/gems/ruby-2.5.0/gems/sshkit-1.15.1/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
    6: from /Users/tom/.rvm/gems/ruby-2.5.0/gems/sshkit-1.15.1/lib/sshkit/backends/abstract.rb:29:in `run'
    5: from /Users/tom/.rvm/gems/ruby-2.5.0/gems/sshkit-1.15.1/lib/sshkit/backends/abstract.rb:29:in `instance_exec'
    4: from /Users/tom/.rvm/gems/ruby-2.5.0/bundler/gems/capistrano-unicorn-nginx-14b7c91db924/lib/capistrano/tasks/nginx.rake:47:in `block (3 levels) in <top (required)>'
    3: from /Users/tom/.rvm/gems/ruby-2.5.0/bundler/gems/capistrano-unicorn-nginx-14b7c91db924/lib/capistrano/unicorn_nginx/helpers.rb:25:in `template'
    2: from /Users/tom/.rvm/gems/ruby-2.5.0/bundler/gems/capistrano-unicorn-nginx-14b7c91db924/lib/capistrano/unicorn_nginx/helpers.rb:20:in `template_to_s'
    1: from /Users/tom/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/erb.rb:885:in `result'
/Users/tom/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/erb.rb:885:in `eval': (erb):20: syntax error, unexpected ')', expecting end-of-input (SyntaxError)
); _erbout.<<(( template_to_s(...
^
cap aborted!
SyntaxError: (erb):20: syntax error, unexpected ')', expecting end-of-input
); _erbout.<<(( template_to_s(...
^
/Users/tom/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/erb.rb:885:in `eval'
/Users/tom/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/erb.rb:885:in `result'
/Users/tom/.rvm/gems/ruby-2.5.0/bundler/gems/capistrano-unicorn-nginx-14b7c91db924/lib/capistrano/unicorn_nginx/helpers.rb:20:in `template_to_s'
/Users/tom/.rvm/gems/ruby-2.5.0/bundler/gems/capistrano-unicorn-nginx-14b7c91db924/lib/capistrano/unicorn_nginx/helpers.rb:25:in `template'
/Users/tom/.rvm/gems/ruby-2.5.0/bundler/gems/capistrano-unicorn-nginx-14b7c91db924/lib/capistrano/tasks/nginx.rake:47:in `block (3 levels) in <top (required)>'
/Users/tom/.rvm/gems/ruby-2.5.0/gems/sshkit-1.15.1/lib/sshkit/backends/abstract.rb:29:in `instance_exec'
/Users/tom/.rvm/gems/ruby-2.5.0/gems/sshkit-1.15.1/lib/sshkit/backends/abstract.rb:29:in `run'
/Users/tom/.rvm/gems/ruby-2.5.0/gems/sshkit-1.15.1/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
Tasks: TOP => nginx:setup