forked from OpenUnited/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-entrypoint.sh
More file actions
31 lines (25 loc) · 975 Bytes
/
docker-entrypoint.sh
File metadata and controls
31 lines (25 loc) · 975 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
#!/bin/bash
# Reset existing database
# echo "Reset existing database"
# echo "----------------------------------------------------------"
# nohup python reset_database.py
# Create database migrations
# echo "Create database migrations"
# echo "----------------------------------------------------------"
# nohup python manage.py makemigrations
# Apply database migrations
echo "Apply database migrations"
echo "----------------------------------------------------------"
nohup python manage.py migrate --run-syncdb
# Prepare static files
echo "Preparing static files"
echo "----------------------------------------------------------"
nohup python manage.py collectstatic
# Load Sample Data
# echo "Load Sample Data"
# echo "----------------------------------------------------------"
# echo "Y" | python load_sample_data.py
# Start server
echo "Starting server"
echo "----------------------------------------------------------"
python manage.py runserver 0.0.0.0:80