Go to file
2023-10-25 12:14:48 +00:00
.vscode init 2023-10-25 12:14:48 +00:00
public init 2023-10-25 12:14:48 +00:00
src init 2023-10-25 12:14:48 +00:00
.gitignore init 2023-10-25 12:14:48 +00:00
docker-compose.yml init 2023-10-25 12:14:48 +00:00
docker-entrypoint.sh init 2023-10-25 12:14:48 +00:00
docker.conf init 2023-10-25 12:14:48 +00:00
index.html init 2023-10-25 12:14:48 +00:00
nginx.conf init 2023-10-25 12:14:48 +00:00
npm init 2023-10-25 12:14:48 +00:00
package-lock.json init 2023-10-25 12:14:48 +00:00
package.json init 2023-10-25 12:14:48 +00:00
README.md init 2023-10-25 12:14:48 +00:00
run init 2023-10-25 12:14:48 +00:00
vite.config.js init 2023-10-25 12:14:48 +00:00

vue-project

This template should help get you started developing with Vue 3 in Vite.

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

这是基于docker的项目对于开发环境要求只需要docker不需要安装node或npm。

./npm install

Compile and Hot-Reload for Development

./npm run dev

Compile and Minify for Production

./npm run build

Run web server

# start server
./run start
# restart
./run restart
# stop
./run stop

文件说明

文件 说明
docker-compose.yml docker编排文件里面可以定义端口、工作目录等
docker-entrypoint.sh 可以被映射到容器中的/usr/local/bin/docker-entrypoint.sh,定义容器启动后会自动执行的任务
docker.conf 其中定义容器名称和镜像版本,npm脚本、run脚本、docker-compose.yml文件都依赖这个文件
nginx.conf 可以被映射到容器中的/usr/local/openresty/nginx/conf/nginx.conf容器中nginx服务的配置文件
npm 可以执行容器中的npm命令的自动化脚本使用方法与原生npm一致不过要在前面加上./,如./npm run dev
run 用于发布场景的、自动执行容器中的npm run build并运行nginx服务通过./run start启动容器服务