1、拉取代碼
2、編譯
npm config set registry https://registry.npm.taobao.org
npm install rimraf -g
rimraf node_modules
cnpm install
npm run build:test
3、輸出編譯結(jié)果
將編譯生成的project/dist/拷貝到apache/htdocs*下。
4、安裝
將apache拷貝到安裝目錄
5、啟動
執(zhí)行start.bat腳本
6、停止服務(wù)
執(zhí)行stop.bat腳本
6、常見問題
1、執(zhí)行httpd.exe -k install -n "Apache24"時報錯:
(OS 10013)以一種訪問權(quán)限不允許的方式做了一個訪問套接字的嘗試。 : AH00072: make_sock: could not bind to address [::]:443

image
在Apache24\conf\extra\httpd-ahssl.conf中查找443替換為442;或者在httpd.conf中將跟ssl相關(guān)的內(nèi)容都注釋了。
2、查看占用指定端口的的程序(定位問題使用)
netstat -ano|findstr “6010”
3、apache啟動時,報錯“特定錯誤 1”,提示apache已經(jīng)啟動,實(shí)際上進(jìn)程和端口號查看,apache都沒有啟動

image
從其他機(jī)器拷貝的正在啟動的apache,log目錄下自帶一個httpd.pid文件,刪除后,重新啟動就ok