2019-04-03 13:55:34 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
trap "echo TRAPed signal" HUP INT QUIT KILL TERM
|
|
|
|
|
|
|
|
source /venv/bin/activate
|
|
|
|
|
2019-11-13 21:38:29 +02:00
|
|
|
cd /nalodeni
|
2019-04-03 13:55:34 +03:00
|
|
|
|
|
|
|
python manage.py migrate
|
|
|
|
|
2019-11-15 21:16:57 +02:00
|
|
|
python manage.py collectstatic --noinput --clear
|
2019-04-03 13:55:34 +03:00
|
|
|
|
2019-11-13 21:38:29 +02:00
|
|
|
python manage.py loaddata nalodeni_interestregion nalodeni_topics nalodeni_skills nalodeni_counties
|
2019-04-03 13:55:34 +03:00
|
|
|
|
|
|
|
PYTHONIOENCODING=utf-8 python manage.py runserver 0.0.0.0:8000
|
|
|
|
|