Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 858 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 858 Bytes

hao

A simple navigation site project

项目雏形(持续更新中): https://hao.tendcode.com

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

Build docker image

# build a simple docker image from nginx
docker build -t hao .

# run a container
docker run \
--name hao \
-p 80:80 \
-v ./hao.conf:/etc/nginx/conf.d/default.conf:ro \
-d --restart=always \
hao:latest

# run by docker-compose
echo "HAO_IMAGE=hao:latest" > .env
docker-compose up -d