-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathstart_development.sh
More file actions
36 lines (27 loc) · 847 Bytes
/
start_development.sh
File metadata and controls
36 lines (27 loc) · 847 Bytes
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
#!/bin/bash
# Development startup script for Message Hub
echo "Starting Message Hub in Development Mode..."
# Set development environment
export FLASK_ENV=development
export FLASK_APP=run.py
# Create virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
fi
echo "Activating virtual environment..."
source venv/bin/activate
echo "Installing/updating dependencies..."
pip install -r requirements.txt
# Create uploads directory if it doesn't exist
mkdir -p uploads
mkdir -p logs
# Create .env file if it doesn't exist
if [ ! -f .env ]; then
echo "Creating development .env file..."
cp .env.example .env
echo "Please edit .env file with your actual configuration!"
fi
# Start the development server
echo "Starting development server..."
python run.py