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

Add ftp deployer plugin #167

Merged
merged 1 commit into from
May 25, 2013
Merged

Add ftp deployer plugin #167

merged 1 commit into from
May 25, 2013

Conversation

haosdent
Copy link

@haosdent haosdent commented May 5, 2013

Add ftp deployer plugin, and user could set the params of ftp in _config.yml.

@tommy351
Copy link
Member

Why not use util.spawn?

tommy351 added a commit that referenced this pull request May 25, 2013
@tommy351 tommy351 merged commit c6dedaf into hexojs:master May 25, 2013
@haosdent
Copy link
Author

Sorry, I should use util.spawn.

@haosdent
Copy link
Author

Pull a new request to repo?

@tommy351
Copy link
Member

I have rewrittien it with util.spawn. (Not yet test)

spawn({
  command: 'ncftpput',
  args: ['-R', '-u', config.user, '-p', config.password, '-P', config.port, config.host, config.root, '*'],
  options: {cwd: hexo.public_dir},
  exit: function(code){
    if (code === 0){
      console.log('Deploy completely.');
      callback();
    }
  }
});

@haosdent
Copy link
Author

Oh. I realize that user should install ncftp first. If hexo couldn't found ncftp in system, I should show some friendly message.

@floriancargoet
Copy link
Contributor

I didn't realize this deployer existed when I created hexo-deployer-ftp.
It handles interactive password input so that you don't have to put it in your config file.

Edit: I couldn't find this deployer in the current version of hexo.

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

Successfully merging this pull request may close these issues.

3 participants