-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
29 lines (23 loc) · 702 Bytes
/
setup.sh
File metadata and controls
29 lines (23 loc) · 702 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
#!/bin/bash
# Setup script for Flask + Tailwind project
set -e
# 1. Create and activate Python virtual environment
if [ ! -d ".venv" ]; then
python -m venv .venv
fi
if [[ "$OSTYPE" == "msys"* || "$OSTYPE" == "win32"* ]]; then
source .venv/Scripts/activate
else
source .venv/bin/activate
fi
# 2. Install Python requirements
if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi
# 3. Run Tailwind in watch mode (optional, comment out if not needed)
# if [ -f package.json ]; then
# npm install
# npx tailwindcss -i ./static/input.css -o ./static/output.css --watch
# fi
python ./app.py
echo "Setup complete! Activate your venv with: source .venv/bin/activate"