-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathhot-seconds.xml
55 lines (42 loc) · 1.83 KB
/
hot-seconds.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<!-- 一键秒级远程热部署配置文件 -->
<!-- 此配置文件一共两套,为hot-seconds.xml和hot-seconds-remote.xml -->
<!-- 此配置文件本地改完重新打开插件开关生效 -->
<liubs>
<author>liubsyy</author>
<!-- 这个是本地和远程连接的唯一id,务必保证本地和远程相等 -->
<secret>aaaaaaaabbbbbbbbbccccccccc</secret>
<!-- 远程ip -->
<remote_ip>199.1.1.1</remote_ip>
<!-- 远程端口 -->
<remote_port>2023</remote_port>
<!-- timeout : ms-->
<timeout>3000</timeout>
<!-- 是否自动部署,如果为true则监听文件变化自动部署到远程 -->
<auto_hotdeploy>false</auto_hotdeploy>
<!-- 本地路径和远程路径mapping关系 -->
<!-- ****** 填写路径path和remote-path须知 ******
1.file_type为上传文件的后缀,如果有多个用英文逗号隔开
2.path为本地路径, remote-path为远程路径
3.$rootPath$为本地工程根目录,remote-path需要填绝对路径
4.上传到远程路径的规则: ${path}/dir1/dir2/a.html ==> ${remote-path}/dir1/dir2/a.html
5.如果file_type是.class,可不填remote-path,直接热到内存生效
-->
<mappings>
<mapping>
<file_type>.html,css,js</file_type>
<path>$rootPath$/src/main/webapp</path>
<remote-path>/opt/web/xx/webapps</remote-path>
</mapping>
<mapping>
<file_type>.class</file_type>
<path>$rootPath$/target/classes</path>
<remote-path>/opt/web/xx/webapps/WEB-INF/classes</remote-path>
</mapping>
<mapping>
<file_type>.jar</file_type>
<path> /Users/xx/.m2/repository/</path>
<remote-path>/opt/web/xx/uploadjar</remote-path>
</mapping>
</mappings>
</liubs>