Skip to content

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

Description

@dhavaldarji

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions