Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems using git-deploy on Ubuntu #3

Open
psztucz opened this issue Jun 25, 2010 · 4 comments
Open

Problems using git-deploy on Ubuntu #3

psztucz opened this issue Jun 25, 2010 · 4 comments

Comments

@psztucz
Copy link

psztucz commented Jun 25, 2010

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?

@jcanfield
Copy link

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.

@psztucz
Copy link
Author

psztucz commented Aug 17, 2010

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

@aizatto
Copy link
Owner

aizatto commented May 26, 2011

Do you guys need help debugging this issues still?

@jcanfield
Copy link

Thanks aizatto. All good here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants