add new start script to run in production, remove old deploy script

This commit is contained in:
2025-01-23 19:07:27 -05:00
parent 99886718dd
commit 96f6d87a9f
2 changed files with 3 additions and 24 deletions

View File

@@ -1,22 +0,0 @@
#!/bin/bash
# Pull the latest changes
git pull
# Build the project
npm run build
# Copy necessary files
cp package.json ./build/
cp package-lock.json ./build/
# Create or update the .env file
# echo "ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY" >> ./build/.env
#echo "OPENAI_API_KEY=$OPENAI_API_KEY" >> ./build/.env
# Navigate to build directory and install dependencies
cd build
npm install
# Restart the application
pm2 restart ecosystem.config.cjs