0.1.1 • Published 1 year ago

web-pub v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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

🏠 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.

0.1.1

1 year ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago