forked from developer italia
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
APP_DIR="$1"
|
||||
PORT="$2"
|
||||
|
||||
cd "$APP_DIR"
|
||||
|
||||
mkdir -p logs static
|
||||
|
||||
if [ ! -f db.sqlite3 ]; then
|
||||
python manage.py migrate
|
||||
python manage.py loaddata dumps/example.json
|
||||
else
|
||||
python manage.py migrate
|
||||
fi
|
||||
|
||||
exec python manage.py runserver 0.0.0.0:"$PORT"
|
||||
Reference in New Issue
Block a user