ci: clean up test files, finalize CI/CD pipeline
This commit is contained in:
@@ -1 +0,0 @@
|
||||
2026-03-29T13:29:50+00:00
|
||||
@@ -1 +0,0 @@
|
||||
// v1.1 — CI/CD pipeline deployed 2026-03-29T13:26:29+00:00
|
||||
@@ -1 +0,0 @@
|
||||
# CI/CD Deploy Log
|
||||
@@ -5,18 +5,14 @@ export HOME="/root"
|
||||
LOG="/opt/task-team/deploy.log"
|
||||
echo "=== Deploy started at $(date -Is) ===" >> $LOG
|
||||
|
||||
# Pull latest code
|
||||
cd /opt/task-team
|
||||
git pull origin master >> $LOG 2>&1
|
||||
|
||||
# Install deps
|
||||
cd /opt/task-team/api
|
||||
npm install --production >> $LOG 2>&1
|
||||
|
||||
# Reload API (with --force to avoid "already in progress")
|
||||
pm2 reload taskteam-api --force >> $LOG 2>&1
|
||||
|
||||
# Build frontend (if it exists)
|
||||
if [ -d /opt/task-team/apps/tasks ] && [ -f /opt/task-team/apps/tasks/package.json ]; then
|
||||
cd /opt/task-team/apps/tasks
|
||||
NEXT_PUBLIC_API_URL=http://localhost:3000 npm run build >> $LOG 2>&1
|
||||
|
||||
Reference in New Issue
Block a user