Skip to content

luogao/lg-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LG-CLI

lg,属于自己的项目脚手架,自己的命令行工具。

2018-06-14 将lg-upload-helper合并到此项目下开发,目前仍为学习测试阶段。

Usage

Setup your config file named lgconfig.json

{
  "host": "your host address",
  "port": "your port",
  "username": "user name",
  "remote": "your remote file dir",
  "local": "your local file dir which need to be uploaded"
}

then

$ lg upload

log

  • 2018-06-23 利用rsync将配置文件中的指定的文件地址中的文件上传至指定的远程主机

TODO

  • 将之前的项目重新编写规划,完成一个简单的init命令
  • 将lg-upload-helper移植到这个项目中,将其集成在lg命令行工具中,并完成其开发。
  • lg-upload-helper将打包好的项目文件发布到指定的服务器上的命令行工具

参考

Google Search node.js 写一个上传文件到服务器的脚本

利用nodejs监控文件变化并使用sftp上传到服务器

ssh2-sftp-client

开发命令行工具

Node.js 命令行程序开发教程

用Node.js创建命令行工具

node-cross-spawn

hexo deploy

rsync

hexojs/hexo-deployer-rsync

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published