From bb62e5ce4442cf6d7a150ab377421bd0d22831d9 Mon Sep 17 00:00:00 2001 From: Dennis Thiessen Date: Tue, 3 Mar 2026 20:25:18 +0100 Subject: [PATCH] updated deployfile --- .gitea/workflows/deploy.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index dffa2fa..5a13643 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -78,6 +78,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + - name: Build frontend + run: | + cd frontend + npm ci + npm run build - name: Deploy to server env: DEPLOY_HOST: ${{ vars.DEPLOY_HOST }} @@ -109,7 +117,6 @@ jobs: --exclude 'logs/' \ --exclude '*.pyc' \ --exclude 'frontend/node_modules/' \ - --exclude 'frontend/dist/' \ -e "ssh $SSH_OPTS" \ ./ ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/ @@ -135,15 +142,9 @@ jobs: alembic upgrade head fi - # Build frontend - cd frontend - npm ci - npm run build - cd .. - # Restart service - sudo systemctl restart stock-data-backend - echo "✓ stock-data-backend deployed" + sudo systemctl restart signalplatform.service + echo "✓ signalplatform deployed" REMOTE_SCRIPT