Browse Source

admin build ok

pull/290/head
yedf2 4 years ago
parent
commit
dc243b2929
  1. 48
      .github/workflows/release.yml
  2. 2
      admin/vite.config.ts

48
.github/workflows/release.yml

@ -31,32 +31,32 @@ jobs:
VITE_ADMIN_VERSION=${{ env.RELEASE_VERSION }} yarn build VITE_ADMIN_VERSION=${{ env.RELEASE_VERSION }} yarn build
cd .. cd ..
# - name: Scp admin - name: Scp admin
# env: env:
# host: 'ubuntu@en.dtm.pub' host: 'ubuntu@en.dtm.pub'
# dest: '/data/dtm-admin/' dest: '/data/dtm-admin/'
# run: | run: |
# cd admin cd admin
# echo "${{secrets.DEPLOY_KEY}}" > deploy_key echo "${{secrets.DEPLOY_KEY}}" > deploy_key
# chmod 600 ./deploy_key chmod 600 ./deploy_key
# tar -cvzf dist.tar.gz dist tar -cvzf dist.tar.gz dist
# scp -i deploy_key -o StrictHostKeyChecking=no dist.tar.gz ${{env.host}}:${{env.dest}} scp -i deploy_key -o StrictHostKeyChecking=no dist.tar.gz ${{env.host}}:${{env.dest}}
# ssh -i deploy_key -o StrictHostKeyChecking=no ${{env.host}} 'cd ${{env.dest}} && tar -zvxf dist.tar.gz' ssh -i deploy_key -o StrictHostKeyChecking=no ${{env.host}} 'cd ${{env.dest}} && tar -zvxf dist.tar.gz'
# rm deploy_key dist.tar.gz rm deploy_key dist.tar.gz
# echo > dist/placeholder echo > dist/placeholder
# cd .. cd ..
# - name: Validates GO releaser config - name: Validates GO releaser config
# uses: docker://goreleaser/goreleaser:v1.7.0 uses: docker://goreleaser/goreleaser:v1.7.0
# with: with:
# args: check args: check
# - name: Create release on GitHub - name: Create release on GitHub
# uses: docker://goreleaser/goreleaser:v1.7.0 uses: docker://goreleaser/goreleaser:v1.7.0
# with: with:
# args: release -f helper/.goreleaser.yml --rm-dist args: release -f helper/.goreleaser.yml --rm-dist
# env: env:
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Create Docker - name: Create Docker
id: meta id: meta

2
admin/vite.config.ts

@ -28,7 +28,7 @@ export default ({ }: ConfigEnv): UserConfigExport => {
}) })
], ],
server: { server: {
port: 5000, port: 6789,
base: 'admin', base: 'admin',
proxy: { proxy: {
'/api': { '/api': {

Loading…
Cancel
Save