fix: use dev build path which works correctly
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -12,12 +12,10 @@ steps:
|
|||||||
image: node:16-alpine
|
image: node:16-alpine
|
||||||
environment:
|
environment:
|
||||||
NODE_OPTIONS: --max-old-space-size=4096
|
NODE_OPTIONS: --max-old-space-size=4096
|
||||||
VUE_CLI_SERVICE_CONFIG_STRICT_MODE: 'false'
|
|
||||||
commands:
|
commands:
|
||||||
- npm install --legacy-peer-deps
|
- npm install --legacy-peer-deps
|
||||||
- NODE_ENV=production UNI_PLATFORM=h5 ./node_modules/.bin/vue-cli-service build --report false --no-module || echo 'Build completed with warnings'
|
- npm run build:h5
|
||||||
- ls -la dist/build/h5/ || ls -la dist/dev/h5/ || echo 'Checking dist directory'
|
- ls -la dist/dev/h5/
|
||||||
- ls -la dist/
|
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
@@ -26,7 +24,7 @@ steps:
|
|||||||
username: root
|
username: root
|
||||||
key:
|
key:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
source: dist/build/h5/*
|
source: dist/dev/h5/*
|
||||||
target: /var/www/martial-mini
|
target: /var/www/martial-mini
|
||||||
strip_components: 3
|
strip_components: 3
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user