-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_web_ui.sh
More file actions
executable file
·46 lines (39 loc) · 1.15 KB
/
start_web_ui.sh
File metadata and controls
executable file
·46 lines (39 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# Start the Mandrill Email Demo Web UI
echo "============================================================"
echo "🚀 Mandrill Email Demo - Web UI Starter"
echo "============================================================"
echo ""
# Check if .env file exists
if [ ! -f "scripts/.env" ]; then
echo "⚠️ Warning: scripts/.env file not found!"
echo ""
echo "Please create a .env file with your Mandrill API key:"
echo " cd scripts"
echo " cp env.example .env"
echo " # Edit .env with your credentials"
echo ""
read -p "Press Enter to exit..."
exit 1
fi
# Check if bundle is installed
if ! command -v bundle &> /dev/null; then
echo "❌ Bundler is not installed!"
echo ""
echo "Install with: gem install bundler"
echo ""
exit 1
fi
# Install dependencies if needed
if [ ! -f "scripts/Gemfile.lock" ]; then
echo "📦 Installing dependencies..."
(cd scripts && bundle install)
echo ""
fi
# Start the server
echo "🌐 Starting web server..."
echo "📧 Open your browser to: http://localhost:4567"
echo ""
echo "💡 Press Ctrl+C to stop the server"
echo ""
cd scripts && ruby app.rb