git-deploy icon indicating copy to clipboard operation
git-deploy copied to clipboard

Problems using git-deploy on Ubuntu

Open psztucz opened this issue 15 years ago • 4 comments

Since im not really familliar with Ruby, im not sure if this is an issue with git-deploy, but maybe.

On pretty much fresh Ubuntu 10.04 installation, after " sudo gem install net-ssh net-sftp net-scp "

git-deploy throws something like this: psztucz@hp:$ ./git-deploy /usr/lib/ruby/1.8/net/sftp.rb:43: undefined method register_service' for Net::SSH:Module (NoMethodError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from ./git-deploy:13

Am i missing some lib? Or is it some weird Ruby issue?

psztucz avatar Jun 25 '10 10:06 psztucz

So, after search for an error similiar to that, that I ran into. I had to:

  1. cd $my-app-dir
  2. git clone http://github.com/aizatto/git-deploy.git
  3. sudo ln -s $my-app-dir/bin/git-deploy /usr/local/bin/git-deploy
  4. sudo apt-get install ruby libruby rdoc libgtk2-ruby libglade2-ruby libyaml-ruby libzlib-ruby libopenssl-ruby libdl-ruby libreadline-ruby libiconv-ruby sqlite3 libsqlite3-ruby irb libssl-dev
  5. cd $my-project
  6. git rev-parse HEAD > REVISION
  7. Upload REVISION to deployment server
  8. mousepad deploy.yml
  9. Use Schema (paste into file):
    'example':
    skip: false
    scheme: ftp
    user: example
    password: password
    host: example.com
    port: 21
    path: /path/to/installation
    
  10. Run 'git-deploy'

This worked for me. After one successful run, I have not been able to get it to work again. I don't know why. Keep getting an ArugmentError.

EDIT. I am also not sure if all of those apt-get installs are necessary. I know that the libruby libyaml-ruby libopenssl-ruby libreadline-ruby are required. Not sure about the others. Maybe that is something to ask the author about?

EDIT. This successfully worked for me after I changed my deploy.yml to the second scheme noted in the README. Works like a charm.

jcanfield avatar Aug 14 '10 19:08 jcanfield

I did all of your steps, unfortunately im still getting same error as posted above.

psztucz avatar Aug 17 '10 11:08 psztucz

Do you guys need help debugging this issues still?

aizatto avatar May 26 '11 14:05 aizatto

Thanks aizatto. All good here.

jcanfield avatar May 27 '11 17:05 jcanfield