# install dependency
npm install
# develop
npm run dev
This will automatically open http://localhost:9528
# build for test environment
npm run build:stage
# build for production environment
npm run build:prod
# preview the release environment effect
npm run preview
# preview the release environment effect + static resource analysis
npm run preview -- --report
# code format check
npm run lint
# code format check and auto fix
npm run lint -- --fix
docker build . -t coverage-admin:v0.0.3 docker buildx build --platform linux/amd64 . -t coverage-admin:v0.0.3
docker run -d -p 9001:9001 coverage-admin:v0.0.3
在 Docker 容器中挂载宿主机上的文件,需要正确配置挂载选项才能启用 birthtime 属性。具体而言,在 Linux 和 macOS 系统中,可以使用以下选项来挂载文件并启用 birthtime 属性: macOS 对于 macOS 的 HFS+ 和 APFS 文件系统,需要添加 bsdflags 和 noappledouble 选项: docker run -v /path/on/host:/path/in/container:ro,bsdflags=0x100000,noappledouble myimage
$ docker ps
$ docker logs
Running on http://localhost:8080
$ docker kill
$ curl -i localhost:49160 curl: (7) Failed to connect to localhost port 49160: Connection refused
docker exec -ti ec4d11930e1a13e46c2dfe7effb1b72c21f90840f2735047092e64b1fa3a5c08 /bin/bash
docker tag coverage-admin:v0.0.3 alvinscrp/coverage-admin:v0.0.3 docker push alvinscrp/coverage-admin:v0.0.3
docker pull alvinscrp/coverage-admin:v0.0.3 docker run -p 9001:9001 -d alvinscrp/coverage-admin
vim /usr/local/etc/nginx/nginx.conf
nginx -g /usr/local/etc/nginx/nginx.conf
./nginx -t
指定检测特定Nginx配置文件:-c表示configuration,指定配置文件 ./nginx -t -c /usr/local/etc/nginx/nginx.conf
./nginx -c /usr/local/etc/nginx/nginx.conf
./nginx -s stop
./nginx -s quit
./nginx -s reload
nginx -s reopen
pm2 restart coverage-server