https://github.com/yale8848/deployx
Node deploy cli utils
https://github.com/yale8848/deployx
deploy deploy-tool node npm-package sftp-client ssh
Last synced: 2 months ago
JSON representation
Node deploy cli utils
- Host: GitHub
- URL: https://github.com/yale8848/deployx
- Owner: yale8848
- Created: 2019-03-07T07:52:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T08:02:32.000Z (over 7 years ago)
- Last Synced: 2025-07-08T08:08:13.340Z (12 months ago)
- Topics: deploy, deploy-tool, node, npm-package, sftp-client, ssh
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## deployx
Node deploy cli utils.
## cmd
```
#: npm install deployx -g
```
```
#: cd
#: deployx init
create deploy.json finish
```
deploy.json
```json
{
"prod": [{
"urls": ["root:123456@111.111.111.111:22"],
"cmds": [{
"type": "local-cmd",
"cmd": "npm run build"
},
{
"type": "remote-cmd",
"cmd": "mkdir -p /home/test"
},
{
"type": "upload-file",
"files": ["dist", "server.js"],
"remote": "/home/test"
},
{
"type": "remote-cmd",
"cmd": "npm i && node server.js"
}
]
}],
"dev": [],
"test": []
}
```
```
#: deployx -h
Usage: index [options] [command]
Options:
-V, --version output the version number
-e, --env deploy by env[dev/test/prod]
-c, --configJsonName deploy config json name
-d, --debug show debug message
-h, --help output usage information
Commands:
init create deploy.json
```
## deploy
```
#: deployx -e prod
```
or
```
"scripts": {
"deploy": "deployx -e prod"
}
#: npm run deploy
```