dcrec1 / inploy

Rails and Sinatra deployment made easy
http://www.diegocarrion.com
402 stars 30 forks source link

config/deploy.rb - config settings not assigned #22

Open mxgrn opened 13 years ago

mxgrn commented 13 years ago

deploy.rb like this:

application = "signal"
repository = 'git://github.com/dcrec1/signal.git'
hosts = ['hooters', 'geni']

... wouldn't take any effect.

While this:

@application = "signal"
@repository = 'git://github.com/dcrec1/signal.git'
@hosts = ['hooters', 'geni']

... does work.

dcrec1 commented 13 years ago

Hi Sergei,

what Inploy version and Ruby version are you using?

mxgrn commented 13 years ago

Ruby 1.9.2p0, inploy 1.8 (and I also tried to install the gem directly from GitHub). Thanks for looking at it!

dcrec1 commented 13 years ago

Can you please try with another Ruby 1.9.2 version? I just tried with this two versions without problems:

ruby-1.9.2-head [ x86_64 ] ruby-1.9.2-preview1 [ x86_64 ]

mxgrn commented 13 years ago

Just tried with 1.9.2-head, same result. Btw, here's the error trace:

/Users/skozlov/.rvm/gems/ruby-1.9.2-head/gems/inploy-1.8/lib/inploy/dsl.rb:71:in `remote_run': undefined method `each' for nil:NilClass (NoMethodError)
from /Users/skozlov/.rvm/gems/ruby-1.9.2-head/gems/inploy-1.8/lib/inploy/deploy.rb:57:in `remote_update'
from /Users/skozlov/.rvm/gems/ruby-1.9.2-head/gems/inploy-1.8/lib/inploy/cli.rb:7:in `execute'
from /Users/skozlov/.rvm/gems/ruby-1.9.2-head/gems/inploy-1.8/bin/inploy:7:in `<top (required)>'
from /Users/skozlov/.rvm/gems/ruby-1.9.2-head/bin/inploy:19:in `load'
from /Users/skozlov/.rvm/gems/ruby-1.9.2-head/bin/inploy:19:in `<main>'

When I look into Inploy code, I see that the "hosts" somehow returns nil. As soon as I configure hosts by assigning @hosts, it works.