Developing (not deploying) New Themes on tutor

We are able to deploy the already developed themes on tutor, by following the documentation.

If we need to develop a new theme, are there ways to test the themes without having to rebuild the openedx image to keep testing our intermediate changes?

or is it better to develop the theme outside of tutor and finally deploy here?

Thanks!

1 Like

Yes: Open edX development — Tutor documentation

1 Like

Thanks @regis. Will follow this.

Hi @regis, I’ve been having problems in deploying the indigo theme in tutor dev mode.

Problem:
The theme is only partially applied. i.e, the header and footer look fine but the index-overlay part is not getting reflected. See screenshots below.
https://i.imgur.com/suDGE8c.png
http://i.imgur.com/fhNuPmN.png

Note:

  1. I have tried with both running openedx withing docker container as well as bind-mounting a local repo. The results have been the same.

  2. I have run the tutor dev settheme indigo localhost:8000 localhost:8001 localhost command. The only odd thing I noticed here was the refernce to tutor.production environment.
    image

  3. the indigo theme comes up perfectly fine on tutor local installation.

Any suggestions for further troubleshooting?

I encountered a similar issue when upgrading to Juniper. Can you please try to create the following symlink, and see if it fixes the issue:

ln -s "$(tutor config printroot)/env/build/openedx/themes/indigo/lms/templates" "$(tutor config printroot)/env/build/openedx/themes/indigo/lms/static/"

Tried the command and restarted tutor dev. No luck, unfortunately.

.

You might have to collect the static assets again.

It worked! Thanks.

tutor dev run lms paver update_assets --settings=tutor.development

It seems that the symlink step was also not required. I tried afresh again and without that step too things worked.

hi, can i run dev and prod on same server without interfering with each other?