You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tutor commands are structured in an easy-to-follow hierarchy. At the top level, there are command trees for image and configuration management::
8
+
9
+
tutor config ...
10
+
tutor images ...
11
+
12
+
as well as command trees for each mode in which Tutor can run::
13
+
14
+
tutor local ... # Commands for managing a local Open edX deployment.
15
+
tutor k8s ... # Commands for managing a Kubernetes Open edX deployment.
16
+
tutor dev ... # Commands for hacking on Open edX in development mode.
17
+
18
+
Within each mode, Tutor has subcommands for managing that type of Open edX instance. Many of them are common between modes, such as ``launch``, ``start``, ``stop``, ``exec``, and ``logs``. For example::
19
+
20
+
tutor local logs # View logs of a local deployment.
21
+
tutor k8s logs # View logs of a Kubernetes-managed deployment.
22
+
tutor dev logs # View logs of a development platform.
23
+
24
+
Many commands can be further parameterized to specify their target and options, for example::
25
+
26
+
tutor local logs cms # View logs of the CMS container in a local deployment.
27
+
tutor k8s logs mysql # View logs of MySQL in Kubernetes-managed deployment.
28
+
tutor dev logs lms --tail 10 # View ten lines of logs of the LMS container in development mode.
29
+
30
+
And that's it! You do not need to understand Tutor's entire command-line interface to get started. Using the ``--help`` option that's availble on every command, it is easy to learn as you go. For an in-depth guide, you can also explore the :ref:`CLI Reference <cli_reference>`.
`Open edX <http://open.edx.org/>`_ is a thriving open source project, backed by a great community, for running an online learning platform at scale. Open edX comes with an LMS (Learning Management System) where students access course contents, a CMS (Content Management System) that course staff uses to design courses, and a few other components to provide more services to students, course staff, and platform administrators.
10
+
11
+
Should I use Open edX?
12
+
----------------------
13
+
14
+
Open edX competitors include `Moodle <https://moodle.org/>`__, `Instructure's Canvas <https://www.instructure.com/>`__, `Blackboard's Open LMS <https://www.blackboard.com>`__, as well as a slew of hosted, closed source alternatives. Open edX is the only online learning system that satisfies all following properties:
15
+
16
+
* Open source software to avoid vendor lock-in
17
+
* Scales well in all directions (number of users and courses)
18
+
* Multiple extension points for comprehensive customization
19
+
* Modern, intuitive user interface to keep students engaged
20
+
21
+
Open edX is a safe bet: it is backed by edX.org, a US-based non-profit that is committed to open source and which runs Open edX to service its millions of learners. With Open edX you can be sure that the features you need will be available. If it's good enough for Harvard, the MIT, or the French government, then it will probably also work for you.
Tutor is an open source distribution of `Open edX <https://open.edx.org>`_. It uses the original code from the various Open edX repositories, such as `edx-platform <https://github.com/openedx/edx-platform/>`_, `cs_comments_service <https://github.com/openedx/cs_comments_service>`_, etc. and packages everything in a way that makes it very easy to install, administer and upgrade Open edX. In particular, all services are run inside Docker containers.
10
+
11
+
Tutor makes it possible to deploy Open edX locally, with `docker-compose <https://docs.docker.com/compose/overview/>`_ or on an existing `Kubernetes cluster <http://kubernetes.io/>`_.
12
+
13
+
What is the purpose of Tutor?
14
+
-----------------------------
15
+
16
+
To make it possible to deploy, administer and upgrade Open edX anywhere, easily.
Copy file name to clipboardExpand all lines: docs/configuration.rst
+84-4Lines changed: 84 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ Configuration and customisation
6
6
Tutor offers plenty of possibilities for platform customisation out of the box. There are two main ways in which the base Open edX installation can be customised:
7
7
8
8
a. Modifying the Tutor :ref:`configuration parameters <configuration>`.
9
-
b. Modifying the :ref:`Open edX docker image <customise>` that runs the Open edX platform.
9
+
b. Modifying the :ref:`Open edX docker image <custom_openedx_docker_image>` that runs the Open edX platform.
10
10
11
-
This section does not cover :ref:`plugin development <plugins>`. For simple changes, such as modifying the ``*.env.yml`` files or the edx-platform settings, *you should not fork edx-platform or tutor*! Instead, you should create a simple :ref:`plugin for Tutor <plugins_yaml>`.
11
+
This section does not cover :ref:`plugin development <plugin_development>`. For simple changes, such as modifying the ``*.env.yml`` files or the edx-platform settings, *you should not fork edx-platform or tutor*! Instead, you should create a simple :ref:`plugin for Tutor <plugin_development_tutorial>`.
12
12
13
13
.. _configuration:
14
14
@@ -293,8 +293,6 @@ If you would like to perform SSL/TLS termination with your own custom certificat
293
293
294
294
.. _customise:
295
295
296
-
.. _custom_openedx_docker_image:
297
-
298
296
Kubernetes
299
297
~~~~~~~~~~
300
298
@@ -313,6 +311,8 @@ This configuration parameter sets the Contact Email.
313
311
314
312
This configuration parameter sets the Platform Name.
315
313
314
+
.. _custom_openedx_docker_image:
315
+
316
316
Custom Open edX docker image
317
317
----------------------------
318
318
@@ -497,3 +497,83 @@ In these situations, you can set ``--docker-arg`` flag in the ``tutor images bui
497
497
--docker-arg="docker.io/myusername/openedx:mytag"
498
498
499
499
This will result in passing the ``--cache-from`` option with the value ``docker.io/myusername/openedx:mytag`` to the docker build command.
500
+
501
+
502
+
Modifying ``edx-platform`` settings
503
+
-----------------------------------
504
+
505
+
The default settings module loaded by ``edx-platform`` is ``tutor.production`` in production and ``tutor.development`` in development. The folders ``$(tutor config printroot)/env/apps/openedx/settings/lms`` and ``$(tutor config printroot)/env/apps/openedx/settings/cms`` are mounted as ``edx-platform/lms/envs/tutor`` and ``edx-platform/cms/envs/tutor`` inside the docker containers. To modify these settings you must create a plugin that implements one or more of the patch statements in those setting files. See the :ref:`plugin_development_tutorial` tutorial for more information on how to create a plugin.
506
+
507
+
508
+
.. _theming:
509
+
510
+
Installing a custom theme
511
+
-------------------------
512
+
513
+
Comprehensive theming is enabled by default, but only the default theme is compiled. `Indigo <https://github.com/overhangio/indigo>`__ is a better, ready-to-run theme that you can start using today.
514
+
515
+
To compile your own theme, add it to the ``env/build/openedx/themes/`` folder::
The ``themes`` folder should have the following structure::
521
+
522
+
openedx/themes/
523
+
mycustomtheme1/
524
+
cms/
525
+
...
526
+
lms/
527
+
...
528
+
mycustomtheme2/
529
+
...
530
+
531
+
Then you must rebuild the openedx Docker image::
532
+
533
+
tutor images build openedx
534
+
535
+
Finally, you should enable your theme with the :ref:`settheme command <settheme>`.
536
+
537
+
538
+
Using Google Mail as an SMTP server
539
+
-----------------------------------
540
+
541
+
By default, Tutor comes with a simple SMTP server for sending emails. Such a server has an important limitation: it does not implement mailing good practices, such as DKIM or SPF. As a consequence. the emails you send might be flagged as spam by their recipients. Thus, you might want to disable the SMTP server and run your own, for instance using your Google Mail account.
542
+
543
+
.. warning::
544
+
Google Mail SMTP servers come with their own set of limitations. For instance, you are limited to sending 500 emails a day. Reference: https://support.google.com/mail/answer/22839
545
+
546
+
You should authorize third-party to access your Google Mail account. In your Google Mail account, select "Manage Account", "Security", and turn on "Less Secure App Access". Check the Google documentation for more information on "less secure apps": https://support.google.com/accounts/answer/6010255
547
+
548
+
Then, check that you can reach the Google Mail SMTP service from your own server::
549
+
550
+
$ telnet smtp.gmail.com 587
551
+
552
+
If you get ``Connected to smtp.gmail.com.`` then it means that you can successfully reach the Google Mail SMTP servers. If not, you will have to reconfigure your firewall.
553
+
554
+
To exit the ``telnet`` shell, type ``ctrl+]``, then ``ctrl+d``.
555
+
556
+
Then, disable the SMTP server that comes with Tutor::
557
+
558
+
$ tutor config save --set RUN_SMTP=false
559
+
560
+
Configure credentials to access your SMTP server::
Don't forget to replace your email address and password in the prompt above. If your email password contains special characters, you might have to escape them.
571
+
572
+
Then, restart your platform::
573
+
574
+
$ tutor local launch
575
+
576
+
That's it! You can send a test email with the following command::
577
+
578
+
$ tutor local run --no-deps lms ./manage.py lms shell -c \
0 commit comments