npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fis3-deploy-rsync

v1.0.1

Published

fis3 deploy plugin, use rsync to deploy files

Downloads

1

Readme

fis3-deploy-rsync

这是fis3的一个deploy插件,通过rsync来部署文件到远端机器,通常情况下需要结合fis3-deploy-local-deliver(该插件用来发布文件到本地)使用。local-deliver发布的文件夹作为rsync的需要同步的文件。

##使用方式

使用windows的同学需要安装cgwin以及rsync插件 需要自行在目标机器上进行rsync/ssh免密,否则会要求输入ssh的密码

安装:npm install fis3-deploy-rsync --save-dev


var cache = path.join(__dirname, './output/');

fis
  .media("fedev226")
  .match("**", {
    deploy: [

      fis.plugin('local-deliver', {
        to:  cache
      }),
      
      fis.plugin("rsync", {
        from: cache,       // 此处需要与local-deliver的to参数值相同
        to: "username@host:/App/data/www_test"
      })
      
    ]
  });

使用fis3 release fedev226 -w 即可发布

##工作过程 一般情况下,会直接通过rsync文件夹的方式进行同步,转换成shell为 rsync fromDir username@host:toDir 在fis3的-w模式下,一般的修改保存过程,只会有少数文件变动,会采用同步改动文件的方式 rsync fromDir/modifiedFile username@host:toDir/modifiedFile

有两个注意事项:1,from文件夹后面以"/"结束时,如示例,会同步文件夹中的内容,否则,则会在远程机器上创建该文件夹,多出一层目录。2,rsync单个文件的时候,如果远程机器上不能递归创建文件目录,客户端会报错,此时只需重新fis3 release fedev226 -w即可(可以做到自动创建,但是有损性能,不值得)。