updated deployfile
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user