FasterWeb that depends FasterRunner
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
- open url(recommend chrome): http://localhost:8080/fastrunner/register
- 修改default.conf配置文件 server_name的ip(宿主机IP), 端口默认8080
- 修改/src/restful/api.js baseUrl地址, 即为fastrunner容器运行的宿主机地址
- 执行npm install, npm run build # 生成生产环境包
- docker build -t fasterweb:latest . # 构建docker镜像
- docker run -d --name fasterweb --net=host --restart always fasterweb:latest # 后台运行docker容器
- open url: http://宿主机ip:8080/fastrunner/register