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、输出编译结果
将编译生成的project/dist/拷贝到apache/htdocs*下。
4、安装
将apache拷贝到安装目录
5、启动
执行start.bat脚本
6、停止服务
执行stop.bat脚本
6、常见问题
1、执行httpd.exe -k install -n "Apache24"时报错:
(OS 10013)以一种访问权限不允许的方式做了一个访问套接字的尝试。 : AH00072: make_sock: could not bind to address [::]:443
image
在Apache24\conf\extra\httpd-ahssl.conf中查找443替换为442;或者在httpd.conf中将跟ssl相关的内容都注释了。
2、查看占用指定端口的的程序(定位问题使用)
netstat -ano|findstr “6010”
3、apache启动时,报错“特定错误 1”,提示apache已经启动,实际上进程和端口号查看,apache都没有启动
image
从其他机器拷贝的正在启动的apache,log目录下自带一个httpd.pid文件,删除后,重新启动就ok