caelum0x f80b04ae0f feat(ritgram): move GitGram app into railyard as Ritgram, next to Rithub
Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram).
AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan.
Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-13 04:18:46 +03:00

56 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# Gitgram - Production Server Launcher
# Starts backend and web production servers
set -e
# Colors
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
echo -e "${BLUE}馃殌 Starting Gitgram Production Servers...${NC}"
echo ""
# Check if projects are built
if [ ! -d "backend/dist" ]; then
echo -e "${YELLOW}鈿狅笍 Backend not built. Building now...${NC}"
npm run build:backend
fi
if [ ! -d "web/.next" ]; then
echo -e "${YELLOW}鈿狅笍 Web not built. Building now...${NC}"
npm run build:web
fi
# Check if npm-run-all is installed
if ! npm list npm-run-all > /dev/null 2>&1; then
echo -e "${YELLOW}鈿狅笍 npm-run-all not found. Installing...${NC}"
npm install --save-dev npm-run-all
fi
# Function to cleanup on exit
cleanup() {
echo ""
echo -e "${YELLOW}馃洃 Stopping all servers...${NC}"
kill 0
exit
}
trap cleanup SIGINT SIGTERM
# Display server information
echo -e "${GREEN}Starting production servers:${NC}"
echo " 馃摗 Backend API: http://localhost:3000"
echo " 馃寪 Web App: http://localhost:3001"
echo ""
echo -e "${YELLOW}Press Ctrl+C to stop all servers${NC}"
echo ""
# Start servers
npm run start