自動Build上傳包到伺服器

2021-08-30 09:52:04 字數 510 閱讀 9533

專案下的build.xml,可以自動build出war包和properties

*.war放置在jboss的deploy下,*.properties放置在conf下

build.xml檔案如下:

專案根上再寫乙個upload.bat檔案,檔案內容如下:

ftp -s:upload-test.txt

根目錄上再寫乙個upload-test.txt檔案,檔案內容如下:

open 192.168.4.38

sillycat

kaishi

binput dist/*.war

put dist/*.properties

quit

這樣ant war

ant config4debug

upload.bat

就將本地專案打包上傳到了伺服器的/home/sillycat下。

再在伺服器上執行build4debug.sh就可以將war和properties拷貝到jboss下面啟動jboss

AngularJs 上傳檔案到伺服器

define angular angular route angular resource angular animate angular growl angular ngupload controllers index directives index filters index services...

PSFTP上傳檔案到伺服器

一 開啟psftp命令工具 二 可以看到首行提示 use open host.name to connect三 我的伺服器使用者民是xing,伺服器位址是192.168.12.128 我用的本地虛擬機器 open xing 192.168.12.128然後會提示輸入伺服器密碼,輸入即可成功連線伺服器...

angular上傳檔案到伺服器

專案中很多時候都會用到上傳檔案到伺服器,因此在這裡實現一下 1.給按鈕繫結事件 上傳 2.建立基礎成層 定義模組3.建立controller層 3.1建立基礎basecontroller 先空著就行3.2建立控制controller 控制層 controller basecontroller 繼承 ...