scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

Error with all commands #6

Closed rremigius closed 11 years ago

rremigius commented 12 years ago

Hi!

Thanks for creating and sharing this tool, should be very useful if I could get it to work. I'm looking at an error generated with every command I try (both deploy and status). Maybe I did something wrong but the error is not very informative.

This is my dandelion.yml:

scheme: ftp
host: mysite.nl
username: myname
password: mypass
path: domains/mysite.nl/public_html/mysite
exclude:
    - .gitignore
    - dandelion.yml

After typing >dandelion status, this is the error I get:

Connecting to ftp://myname@mysite.nl/domains/mysite.nl/public_html/mysite
C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/process.rb:290:in 'spawn': can't convert nil into String (TypeError)
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/process.rb:290:in 'spawn'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/process.rb:271:in 'popen4'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/process.rb:97:in 'exec!'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/process.rb:68:in 'initialize'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/git.rb:301:in 'new'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/git.rb:301:in 'native'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/git.rb:325:in 'method_missing'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/git-ruby.rb:108:in 'rev_parse'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/git-ruby.rb:64:in 'rev_list'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/commit.rb:121:in 'find_all'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/repo.rb:406:in 'commit'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/git.rb:57:in 'initialize'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/deployment.rb:23:in 'new'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/deployment.rb:23:in 'initialize'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/deployment.rb:72:in 'initialize'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/deployment.rb:12:in 'new'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/deployment.rb:12:in 'create'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/command.rb:109:in 'deployment'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/command/status.rb:15:in 'execute'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/application.rb:38:in 'block in execute'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/command.rb:80:in 'initialize'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/application.rb:36:in 'new'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/application.rb:36:in 'execute'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/lib/dandelion/application.rb:7:in 'execute'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/dandelion-0.3.4/bin/dandelion:7:in '<top (required)>'
    from C:/Ruby/bin/dandelion:19:in 'load'        from C:/Ruby/bin/dandelion:19:in '<main>'

I know I'm getting access to the server, because I had the no-access error earlier (typo in settings). I'm on Windows 7, 32 bit and I use the latest versions of Git and Ruby. If you need more information, please ask.

canton7 commented 11 years ago

This (sadly) appears to be due to posix-spawn not working on windows

scttnlsn commented 11 years ago

Yeah, that's unfortunate. Looks like it could be done though: https://github.com/rtomayko/posix-spawn#posixspawnchild

Closing.