File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
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"
You can’t perform that action at this time.
0 commit comments