I am using Tutor v11.1.4 on Ubuntu 20.04 LTS.
Commands, in numbered order:
-
git clone https://github.com/overhangio/indigo
-
tutor config render --extra-config ./indigo/config.yml ./indigo/theme "$(tutor config printroot)/env/build/openedx/themes/indigo"
-
tutor images build openedx
-
tutor local start -d
-
tutor local settheme indigo mydomain.com studio.mydomain.com $(tutor config printvalue LMS_HOST) $(tutor config printvalue CMS_HOST)
Full stcktrace:
⚠️ You are running Tutor as root. This is strongly not recommended. If you are doing this in order to access the Docker daemon, you should instead add your user to the 'docker' group. (see `https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user`)
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to mydomain.com..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='mydomain.com')
if not site.name:
site.name = 'mydomain.com'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to mydomain.com...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to studio.mydomain.com..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='studio.mydomain.com')
if not site.name:
site.name = 'studio.mydomain.com'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to studio.mydomain.com...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to ⚠️..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='⚠️')
if not site.name:
site.name = '⚠️'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to ⚠️...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to You..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='You')
if not site.name:
site.name = 'You'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to You...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to are..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='are')
if not site.name:
site.name = 'are'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to are...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to running..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='running')
if not site.name:
site.name = 'running'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to running...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to Tutor..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='Tutor')
if not site.name:
site.name = 'Tutor'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to Tutor...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to as..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='as')
if not site.name:
site.name = 'as'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to as...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to root...."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='root.')
if not site.name:
site.name = 'root.'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to root....
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to This..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='This')
if not site.name:
site.name = 'This'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to This...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to is..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='is')
if not site.name:
site.name = 'is'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to is...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to strongly..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='strongly')
if not site.name:
site.name = 'strongly'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to strongly...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to not..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='not')
if not site.name:
site.name = 'not'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to not...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to recommended...."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='recommended.')
if not site.name:
site.name = 'recommended.'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to recommended....
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to If..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='If')
if not site.name:
site.name = 'If'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to If...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to you..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='you')
if not site.name:
site.name = 'you'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to you...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to are..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='are')
if not site.name:
site.name = 'are'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to are...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to doing..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='doing')
if not site.name:
site.name = 'doing'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to doing...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to this..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='this')
if not site.name:
site.name = 'this'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to this...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to in..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='in')
if not site.name:
site.name = 'in'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to in...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to order..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='order')
if not site.name:
site.name = 'order'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to order...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to to..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='to')
if not site.name:
site.name = 'to'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to to...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to access..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='access')
if not site.name:
site.name = 'access'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to access...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to the..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='the')
if not site.name:
site.name = 'the'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to the...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to Docker..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='Docker')
if not site.name:
site.name = 'Docker'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to Docker...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to daemon,..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='daemon,')
if not site.name:
site.name = 'daemon,'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to daemon,...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to you..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='you')
if not site.name:
site.name = 'you'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to you...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to should..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='should')
if not site.name:
site.name = 'should'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to should...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to instead..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='instead')
if not site.name:
site.name = 'instead'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to instead...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to add..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='add')
if not site.name:
site.name = 'add'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to add...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to your..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='your')
if not site.name:
site.name = 'your'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to your...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to user..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='user')
if not site.name:
site.name = 'user'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to user...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to to..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='to')
if not site.name:
site.name = 'to'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to to...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to the..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='the')
if not site.name:
site.name = 'the'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to the...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to 'docker'..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain=''docker'')
if not site.name:
site.name = ''docker''
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"
Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to 'docker'...
Traceback (most recent call last):
File "./manage.py", line 123, in <module>
execute_from_command_line([sys.argv[0]] + django_args)
File "/openedx/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/openedx/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/openedx/venv/lib/python3.8/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/openedx/venv/lib/python3.8/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/openedx/venv/lib/python3.8/site-packages/django/core/management/commands/shell.py", line 86, in handle
exec(options['command'])
File "<string>", line 3
site, _ = Site.objects.get_or_create(domain=''docker'')
^
SyntaxError: invalid syntax
Error: Command failed with status 1: docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
echo "Assigning theme indigo to 'docker'..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain=''docker'')
if not site.name:
site.name = ''docker''
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"