9
9
10
10
## Features
11
11
12
- - Select "Build & deploy " to build your project and deploy it to a remote server.
13
- - Selecting "Deploy only " will only execute the deployment process.
12
+ - Select "Build & Deploy " to build your project and deploy it to a remote server.
13
+ - Selecting "Deploy Only " will only execute the deployment process.
14
14
15
- ![ Extension menus] ( https://github. com/liying2008/easy-deployment/blob /master/pics/extension_commands.png )
15
+ ![ Extension menus] ( https://raw.githubusercontent. com/liying2008/easy-deployment/master/pics/extension_commands.png )
16
16
17
+ Commands in command palette:
18
+
19
+ ![ Command palette] ( https://raw.githubusercontent.com/liying2008/easy-deployment/master/pics/command_palette.png )
17
20
18
21
## Extension Settings
19
22
20
23
This extension contributes the following settings:
21
24
22
25
``` json
26
+ {
23
27
"easyDeployment.config" : {
24
28
"configurations" : [
25
29
{
@@ -46,18 +50,66 @@ This extension contributes the following settings:
46
50
}
47
51
]
48
52
}
53
+ }
49
54
```
50
55
56
+ ** Details for each configuration item are as follows:**
57
+
58
+ * ` local ` configuration (Configuration of local project):
59
+
60
+ | Key | Defaults | Description |
61
+ | ---- | ---- | ---- |
62
+ | ` projectPath ` | . | Project root path (relative path) |
63
+ | ` buildCmd ` | yarn build | Build command for local project |
64
+ | ` outputDir ` | dist | Compiled product output path (relative path) |
65
+
66
+ * ` remote ` configuration (Configuration of remote server):
67
+
68
+ | Key | Defaults | Description |
69
+ | ---- | ---- | ---- |
70
+ | ` deploymentPath ` | | Remote deployment path (absolute path) |
71
+ | ` backupOriginalFiles ` | false | Do you need to back up the original files? |
72
+ | ` backupTo ` | ~ /backup | Backup path (absolute path) of the original files |
73
+ | ` deleteOriginalFiles ` | false | Do you need to delete the original files? |
74
+ | ` postCmd ` | | Command executed after deployment |
75
+
76
+ * ` ssh ` configuration (Configuration of ssh connection):
77
+
78
+ | Key | Defaults | Description |
79
+ | ---- | ---- | ---- |
80
+ | ` host ` | | Hostname or IP address of the server |
81
+ | ` port ` | 22 | Port number of the server |
82
+ | ` username ` | | Username for authentication |
83
+ | ` password ` | | Password for password-based user authentication |
84
+ | ` privateKey ` | | Private key (absolute path) for either key-based or hostbased user authentication (OpenSSH format) |
85
+
86
+ ** Note:**
87
+
51
88
* Please set it according to your actual needs.
52
89
* You can choose between ` password ` and ` privateKey ` in the ssh configuration.
90
+ * If you use ` privateKey ` , remember to put the local ssh public key into the server's ` authorized_keys ` file.
91
+ * The remote server needs to be a ** Linux** machine.
53
92
* There can be multiple configurations in the outer configurations, and the ` name ` attribute cannot be repeated.
54
93
55
94
56
95
## Quick Start
57
96
58
97
- Install [ Easy Deployment] ( https://marketplace.visualstudio.com/items?itemName=liying.easy-deployment ) .
59
98
- Configure ` easyDeployment.config ` in ` settings.json ` in the workspace.
60
- - Right click in Explorer and select ` Build & deploy ` or ` Deploy only ` .
99
+ - Right click in Explorer and select ` Build & Deploy ` or ` Deploy Only ` .
100
+
101
+
102
+ ## Thanks
103
+
104
+ - [ archiverjs/node-archiver] ( https://github.com/archiverjs/node-archiver )
105
+ - [ steelbrain/node-ssh] ( https://github.com/steelbrain/node-ssh )
106
+
107
+
108
+ ## Source Code
109
+
110
+ [ https://github.com/liying2008/easy-deployment ] ( https://github.com/liying2008/easy-deployment )
111
+
112
+ Binary package can be obtained from [ this link.] ( https://marketplace.visualstudio.com/items?itemName=liying.easy-deployment )
61
113
62
114
63
115
## License
0 commit comments