將項目部署到服務器的流程:
第一步:ssh root@服務器IP地址 ?port:8080
第二步輸入密碼:輸入密碼進入服務器
第三步切到根目錄:cd /
第四步進入項目目錄:/webH5/Enterprise-Dashboard
第五步安裝程序插件:npm install
第六步運行項目:npm run start-test
如果想要在后臺運行:nohup npm run start-prod & disown(nohup npm run start-test & disown)? ? tail -f nohup.out
如果想更新程序的話,先定位到需要更新的項目,然后gl 把git里面的新提交代碼重新拉取一遍
然后運行npm run start-test