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

It's not creating Directory on server if not exist #18

Open
dhavaldarji opened this issue Jul 10, 2012 · 1 comment
Open

It's not creating Directory on server if not exist #18

dhavaldarji opened this issue Jul 10, 2012 · 1 comment

Comments

@dhavaldarji
Copy link

Hi,
I tried ./git-deploy and there are few files change between last 2 commits. say..
modules/Email/Email.php
include/javascript/test.js

now on server (i am doing tesing)
/var/www/test/ is an empty folder

and my deploy.yml file has path = /var/www/test/

so when i fire ./git-deploy it says

/var/www/test/
Connecting to www.host.com
Remote Revision: c86ef64d9b996cf445bcb5cc4bb9811a07bf9dde
git diff --name-status c86ef64d9b996cf445bcb5cc4bb9811a07bf9dde..HEAD --
Uploading include/javascript/test.js
/var/lib/gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/operations/upload.rb:313:in on_open': Net::SFTP::StatusException open /var/www/test//include/javascript/test.js (2, "no such file") (Net::SFTP::StatusException) from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:into_proc'
from /var/lib/gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/request.rb:87:in call' from /var/lib/gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/request.rb:87:inrespond_to'
from /var/lib/gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/session.rb:948:in dispatch_request' from /var/lib/gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/session.rb:911:inwhen_channel_polled'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in to_proc' from /var/lib/gems/1.8/gems/net-ssh-2.5.2/lib/net/ssh/connection/channel.rb:311:incall'

seems like it is not creating directories if it does not exist, if i do create blank dir then it works fine.

@mkubenka
Copy link
Contributor

I have fixed it in my fork: mkubenka@8c6aec5#bin

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

2 participants