Take a look at DEPLOY.bash
.
On Debian-like system, try:
bash -c "$(curl https://raw.githubusercontent.com/Babaritech/babar3/master/DEPLOY.bash)"
Don't forget to read the Django checklist. You cant get SSL certificates with letsencrypt.
Both Django and Angular get a special dev server. They are available with:
cd back
source ./env/bin/activate
python3 manage.py runserver
cd front
grunt serve
To migrate the old babar database to the new one:
- First get a JSON dump of the old DB
- Convert it with
migrate.py old.json
- Import it in Django
python3 manage.py loaddata new.json
Available at /docs/
.