Files
Archive/havana/start_havana.sh

29 lines
767 B
Bash
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Get the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPO_DIR="$SCRIPT_DIR/Havana_Repo"
# Check if repo directory exists
if [ ! -d "$REPO_DIR" ]; then
echo "❌ Error: Havana_Repo directory not found at $REPO_DIR"
exit 1
fi
echo "🚀 Starting Havana..."
cd "$REPO_DIR"
# Run docker-compose
if docker-compose up -d; then
echo ""
echo "✅ Havana services are running!"
echo "🌐 Website: http://localhost:80"
echo "🗄️ Database: localhost:3307"
echo ""
echo " To view logs: cd Havana_Repo && docker-compose logs -f"
echo " To stop: cd Havana_Repo && docker-compose down"
else
echo "❌ Failed to start Havana."
exit 1
fi