Problems using git-deploy on Ubuntu
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?
So, after search for an error similiar to that, that I ran into. I had to:
- cd $my-app-dir
- git clone http://github.com/aizatto/git-deploy.git
- sudo ln -s $my-app-dir/bin/git-deploy /usr/local/bin/git-deploy
- 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
- cd $my-project
- git rev-parse HEAD > REVISION
- Upload REVISION to deployment server
- mousepad deploy.yml
- Use Schema (paste into file):
'example': skip: false scheme: ftp user: example password: password host: example.com port: 21 path: /path/to/installation- 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.
I did all of your steps, unfortunately im still getting same error as posted above.
Do you guys need help debugging this issues still?
Thanks aizatto. All good here.