-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
26 lines (20 loc) · 595 Bytes
/
build.sh
File metadata and controls
26 lines (20 loc) · 595 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
#!/bin/bash
# Create a virtual environment
echo "Creating a virtual environment..."
python3.9 -m venv venv
source venv/bin/activate
# Install the latest version of pip
echo "Installing the latest version of pip..."
python -m pip install --upgrade pip
# Build the project
echo "Building the project..."
python -m pip install -r requirements.txt
# Migrations
echo "Migrate database..."
python manage.py migrate --noinput
# Collect static files
echo "Collecting static files..."
python manage.py collectstatic --noinput -v 2
# Admin user
echo "Create admin user..."
python manage.py adminuser