-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_dev.sh
More file actions
44 lines (35 loc) Β· 1.06 KB
/
start_dev.sh
File metadata and controls
44 lines (35 loc) Β· 1.06 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
#!/bin/bash
# Development startup script
echo "π Starting Package Registry Development Server..."
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "π¦ Creating virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
echo "π§ Activating virtual environment..."
source venv/bin/activate
# Install dependencies
echo "π Installing dependencies..."
pip install -r requirements.txt
# Copy environment file if it doesn't exist
if [ ! -f ".env" ]; then
echo "βοΈ Creating environment file..."
cp .env.example .env
fi
# Initialize database
echo "ποΈ Initializing database..."
python init_db.py
# Create storage directories
echo "π Creating storage directories..."
mkdir -p storage/{docker,apt,npm,generic}
# Start the application
echo "π Starting Flask application..."
echo "π Access the application at: http://localhost:5000"
echo "π€ Default admin credentials:"
echo " Email: admin@example.com"
echo " Password: admin123"
echo ""
echo "π Press Ctrl+C to stop the server"
echo ""
python app.py