regenerate.sh 520 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # For postgresql
  3. echo "-> Remove taiga DB"
  4. dropdb taiga
  5. echo "-> Create taiga DB"
  6. createdb taiga
  7. echo "-> Load migrations"
  8. python manage.py migrate
  9. echo "-> Load initial user (admin/123123)"
  10. python manage.py loaddata initial_user --traceback
  11. echo "-> Load initial project_templates (scrum/kanban)"
  12. python manage.py loaddata initial_project_templates --traceback
  13. echo "-> Generate sample data"
  14. python manage.py sample_data --traceback
  15. echo "-> Rebuilding timeline"
  16. python manage.py rebuild_timeline --purge