Visual redesign, message input, reversed messages, systemd service
- New visual identity: solid dark cards, purple accent, iOS-like feel - Session replay: newest messages first, message input with send button - Chat proxy route for sending messages to sessions - systemd user service with deploy script - All pages restyled: Pulse, Memory, History, Skills, Cron, Soul, Config
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
SYSTEMD_DIR="$HOME/.config/systemd/user"
|
||||
PORT="${1:-3100}"
|
||||
|
||||
echo "Building..."
|
||||
cd "$PROJECT_DIR"
|
||||
export PATH="$HOME/.hermes/node/bin:$PATH"
|
||||
HERMES_BACKEND_URL=http://127.0.0.1:8643 npx next build
|
||||
|
||||
echo "Copying static assets to standalone..."
|
||||
cp -r .next/static .next/standalone/.next/static
|
||||
cp -r public .next/standalone/public
|
||||
|
||||
echo "Installing service..."
|
||||
mkdir -p "$SYSTEMD_DIR"
|
||||
sed "s|ExecStart=.*|ExecStart=/home/hermes/.hermes/node/bin/node $PROJECT_DIR/.next/standalone/server.js|" \
|
||||
"$PROJECT_DIR/deploy/hermes-os.service" > "$SYSTEMD_DIR/hermes-os.service"
|
||||
|
||||
# Add port
|
||||
if ! grep -q "PORT=" "$SYSTEMD_DIR/hermes-os.service"; then
|
||||
sed -i "/NODE_ENV/a Environment=PORT=$PORT" "$SYSTEMD_DIR/hermes-os.service"
|
||||
sed -i "/NODE_ENV/a Environment=HOSTNAME=0.0.0.0" "$SYSTEMD_DIR/hermes-os.service"
|
||||
fi
|
||||
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user restart hermes-os
|
||||
systemctl --user enable hermes-os
|
||||
|
||||
sleep 3
|
||||
if curl -s -o /dev/null -w "%{http_code}" "http://localhost:$PORT" | grep -q 200; then
|
||||
echo "✅ Hermes OS running on port $PORT"
|
||||
else
|
||||
echo "⚠️ Service started but health check failed"
|
||||
systemctl --user status hermes-os --no-pager
|
||||
fi
|
||||
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Hermes OS — Mobile dashboard
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/hermes/hermes-os
|
||||
Environment=PATH=/home/hermes/.hermes/node/bin:/usr/local/bin:/usr/bin:/bin
|
||||
Environment=HERMES_BACKEND_URL=http://127.0.0.1:8643
|
||||
Environment=HERMES_GATEWAY_URL=http://127.0.0.1:8642
|
||||
Environment=HERMES_SOUL_PATH=/home/hermes/.hermes/SOUL.md
|
||||
Environment=NODE_ENV=production
|
||||
ExecStart=/home/hermes/.hermes/node/bin/node /home/hermes/hermes-os/.next/standalone/server.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user