Skip to content

Commit ffc3585

Browse files
authored
[installation]
1 parent bdddf1e commit ffc3585

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

install.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
bold=$(tput bold)
6+
normal=$(tput sgr0)
7+
8+
echo "\n$bold📦 Setting up JewishPulse...$normal"
9+
10+
# 1. Check Docker
11+
if ! command -v docker &> /dev/null
12+
then
13+
echo "❌ Docker is not installed. Please install Docker first."
14+
exit 1
15+
fi
16+
17+
# 2. Check Docker Compose
18+
if ! command -v docker-compose &> /dev/null
19+
then
20+
echo "❌ Docker Compose is not installed. Please install Docker Compose first."
21+
exit 1
22+
fi
23+
24+
# 3. Clone repository (if not inside it already)
25+
if [ ! -f Makefile ]; then
26+
echo "🔍 Cloning repository..."
27+
git clone https://github.com/WizardLoop/JewishPulse.git
28+
cd JewishPulse
29+
fi
30+
31+
# 4. Create .env file
32+
if [ ! -f .env ]; then
33+
echo "📝 Creating .env from .env.example..."
34+
cp .env.example .env
35+
fi
36+
37+
# 5. Install dependencies
38+
echo "📥 Installing composer dependencies..."
39+
make composer-install
40+
41+
# 6. Launch bot
42+
echo "🚀 Starting the bot..."
43+
make up
44+
45+
echo "\n✅ Installation complete!"
46+
echo ""
47+
echo "To check logs: ${bold}make logs${normal}"
48+
echo "To enter shell: ${bold}make sh${normal}"
49+
echo "To stop bot: ${bold}make down${normal}"
50+
echo ""
51+
echo "🌐 Bot is now running and ready. Configure your .env file if needed."
52+
echo "---"
53+
echo "GitHub: https://github.com/WizardLoop/JewishPulse"

0 commit comments

Comments
 (0)