20 lines
356 B
Bash
Executable File
20 lines
356 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "===== Building LibreChat for Production ====="
|
|
echo ""
|
|
echo "Building frontend and backend..."
|
|
|
|
cd /opt/front-dev
|
|
|
|
# Install dependencies if needed
|
|
echo "Installing dependencies..."
|
|
npm ci
|
|
|
|
# Build the project
|
|
echo "Building project..."
|
|
npm run build
|
|
|
|
echo ""
|
|
echo "Build complete!"
|
|
echo "To start production server, run: npm run start"
|