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

Cannot use alternate syntax in deploy.yml #2

Open
peschee opened this issue Jun 9, 2010 · 4 comments
Open

Cannot use alternate syntax in deploy.yml #2

peschee opened this issue Jun 9, 2010 · 4 comments

Comments

@peschee
Copy link

peschee commented Jun 9, 2010

The docs state that you can use an alternative syntax to define the target FTP server and its configuration:

'example':
  skip: false
  scheme: ftp
  user: example
  password: password
  host: example.com
  port: 21
  path: /path/to/installation

However, at line 100 in your code you have

uri = URI.parse(uri)

and then later

options['path']     = uri.path     if uri.path

It seems that the URI.parse() method parses the 'example' as path, which is why when trying to connect the FTP, I get this error:

put: CWD /example
get: 550 Can't change directory to /example: No such file or directory

Since the uri.path seems to be defined (as parsed), then this line

ftp.chdir(options['path'].empty? ? options['chdir'] : '/' + options['path'])

tries to change the working directory to 'example' instead of the '/path/to/installation' path.

Am I missing something?

@askielboe
Copy link

I have the same problem.

@aizatto
Copy link
Owner

aizatto commented May 26, 2011

Do you guys need help debugging this issues still?

@suan
Copy link

suan commented Oct 7, 2011

Yup, I have this problem to. A workaround which works for me is to set the identifier to the remote path, for example:

'/remote/path':
  skip: true
  host: example.org
  ...
  ...

Hopefully this can get fixed - its a glaring error.

@anselmdk
Copy link

anselmdk commented Mar 8, 2013

I ran into this as well. Using the identifier as the repo path works for me.

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

5 participants