Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create superuser
    • kubectl exec -it prozorro-<env>-survey-api-<...> -c prozorro-<env>-survey-api -- bash
    • DJANGO_SUPERUSER_PASSWORD=<STRONG_PASSWORD> DJANGO_SUPERUSER_USERNAME=superuser_ss_<env> DJANGO_SUPERUSER_EMAIL=superuser@prozorro.sale python manage.py createsuperuser --no-input
  2. Create default survey and set it in configmap
    • kubectl exec -it prozorro-<env>-survey-api-<...> -c prozorro-<env>-survey-api -- bash
    • python manage.py shell --command="from survey.forms.models import Site; out = Site.objects.create(name='prozorro-auction', is_published=False, reshow_enabled=False); print(out.id)"
    • copy id and set it as survey-id in prozorro-<env>-auction-survey-id-config
  3. Rollout restart prozorro-<env>-auction-frontend