fix bus
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-12-13 09:31:13 +08:00
4 changed files with 187 additions and 389 deletions

38
.drone.yml Normal file
View File

@@ -0,0 +1,38 @@
kind: pipeline
type: docker
name: martial-mini
trigger:
branch:
- main
- master
steps:
- name: build
image: node:16-alpine
commands:
- npm install
- ./node_modules/.bin/cross-env NODE_ENV=production UNI_PLATFORM=h5 ./node_modules/.bin/vue-cli-service build
- name: deploy
image: appleboy/drone-scp
settings:
host: 154.30.6.21
username: root
key:
from_secret: ssh_key
source: dist/build/h5/*
target: /var/www/martial-mini
strip_components: 3
- name: restart
image: appleboy/drone-ssh
settings:
host: 154.30.6.21
username: root
key:
from_secret: ssh_key
script:
- docker stop martial-mini || true
- docker rm martial-mini || true
- docker run -d --name martial-mini -p 8081:80 -v /var/www/martial-mini:/usr/share/nginx/html:ro nginx:alpine

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:16-alpine as builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build:h5
FROM nginx:alpine
COPY --from=builder /app/dist/build/h5 /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

496
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -21,18 +21,18 @@
"vue": "^2.6.14" "vue": "^2.6.14"
}, },
"devDependencies": { "devDependencies": {
"@dcloudio/uni-cli-shared": "latest", "@dcloudio/uni-cli-shared": "^2.0.2-3081220230817001",
"@dcloudio/uni-template-compiler": "latest", "@dcloudio/uni-template-compiler": "^2.0.2-3081220230817001",
"@dcloudio/vue-cli-plugin-hbuilderx": "latest", "@dcloudio/vue-cli-plugin-hbuilderx": "^2.0.2-3081220230817001",
"@dcloudio/vue-cli-plugin-uni": "latest", "@dcloudio/vue-cli-plugin-uni": "^2.0.2-3081220230817001",
"@dcloudio/vue-cli-plugin-uni-optimize": "latest", "@dcloudio/vue-cli-plugin-uni-optimize": "^2.0.2-3081220230817001",
"@dcloudio/webpack-uni-mp-loader": "latest", "@dcloudio/webpack-uni-mp-loader": "^2.0.2-3081220230817001",
"@dcloudio/webpack-uni-pages-loader": "latest", "@dcloudio/webpack-uni-pages-loader": "^2.0.2-3081220230817001",
"@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-babel": "~4.5.19",
"@vue/cli-service": "~4.5.0", "@vue/cli-service": "~4.5.19",
"babel-plugin-import": "^1.13.3", "babel-plugin-import": "^1.13.5",
"cross-env": "^7.0.3",
"mini-types": "*", "mini-types": "*",
"miniprogram-api-typings": "*",
"postcss-comment": "^2.0.0", "postcss-comment": "^2.0.0",
"sass": "^1.49.0", "sass": "^1.49.0",
"sass-loader": "^10.1.1", "sass-loader": "^10.1.1",
@@ -41,12 +41,5 @@
"browserslist": [ "browserslist": [
"Android >= 4.4", "Android >= 4.4",
"ios >= 9" "ios >= 9"
], ]
"keywords": [
"uniapp",
"martial-arts",
"registration"
],
"author": "",
"license": "MIT"
} }