mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 03:04:03 +00:00
d5d359ce45
- Fix auto-updater to handle single-binary structure - Fix Docker build to copy frontend before Go compilation - Add development script for frontend rebuilds - Remove unnecessary frontend directory copying in updater The embedded frontend change simplifies deployment but required updates to various build and update systems.
24 lines
472 B
Bash
Executable File
24 lines
472 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script to rebuild frontend for development with embedded frontend
|
|
|
|
set -e
|
|
|
|
cd /opt/pulse
|
|
|
|
echo "Building frontend..."
|
|
cd frontend-modern
|
|
npm run build
|
|
cd ..
|
|
|
|
echo "Copying frontend for embedding..."
|
|
rm -rf internal/api/frontend-modern
|
|
cp -r frontend-modern internal/api/
|
|
|
|
echo "Rebuilding Go binary with embedded frontend..."
|
|
go build -o pulse ./cmd/pulse
|
|
|
|
echo "Restarting service..."
|
|
sudo systemctl restart pulse-backend
|
|
|
|
echo "Frontend rebuild complete!" |