web-pub

0.1.1 • Public • Published

Welcome to web-pub 👋

Version Documentation Maintenance License: ISC

一款用于发布静态资源到服务器的脚本。

🏠 Homepage

Prerequisites

  • node >= 18.0.0
  • npm >= 9.8.1
  • yarn >= 1.22.0

Author

👤 Smilydes

起步

  • npm install web-pub -g

ssh 操作

  • 查看 ssh 配置 web-pub ssh list

  • 添加 ssh 配置 web-pub ssh add <名称> <host@port> <user> <password>

    • web-pub ssh add test 127.0.0.1@22 root 123456
  • 删除指定 ssh 配置 web-pub ssh del test

    • web-pub ssh del <name>
  • 局部配置 ssh

    • web-pub run -S <ip@port@user@pass> -R <remotePath> -L [localPath 默认./ 用于指定本地路径]
      • web-pub run -S 127.0.0.1@22@root@123456. -R /mnt/test
      • 可使用web-pub run --help 查看配置描述

部署

- `web-pub use <ssh名称> <远程服务器部署路径> [本地路径 默认./]`

示例

# 进入web/dist打包好的目录将dist目录内的文件上传到指定服务器的 /mnt/statics/test目录中

cd /web/dist
web-pub use test /mnt/statics/test

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2024 Smilydes.
This project is ISC licensed.

Readme

Keywords

Package Sidebar

Install

npm i web-pub

Weekly Downloads

0

Version

0.1.1

License

ISC

Unpacked Size

18.3 kB

Total Files

7

Last publish

Collaborators

  • smilydes