From 23cbb34b1d36fb43a555957263c783509baa0aab Mon Sep 17 00:00:00 2001 From: Jonathan Boiser Date: Tue, 30 Mar 2021 18:19:02 -0700 Subject: [PATCH] =?UTF-8?q?Remove=20=E2=80=9CDatabase=20setup=E2=80=9D=20f?= =?UTF-8?q?rom=20getting=20started=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And add more info about KOLIBRI_HOME --- docs/getting_started.rst | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/docs/getting_started.rst b/docs/getting_started.rst index 4172920ca3..c95529f5d0 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -131,6 +131,10 @@ There are two environment variables you should plan to set: This variable determines where Kolibri will store its content and databases. It is useful to set if you want to have multiple versions of Kolibri running simultaneously. + .. note:: + If ``KOLIBRI_HOME`` is not set, Kolibri will use ``~/.kolibri`` (on MacOS or Linux) or ``C:\.kolibri`` (on Windows) by default + + Install Python dependencies ~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -175,16 +179,6 @@ Running the Kolibri server .. _devserver: -Database setup -~~~~~~~~~~~~~~ - -To initialize the database run the following command: - -.. code-block:: bash - - kolibri manage migrate - - Development server ~~~~~~~~~~~~~~~~~~ @@ -194,7 +188,9 @@ To start up the development server and build the client-side dependencies, use t yarn run devserver -This will take some time to build the front-end assets, after which you should be able to access the server at ``http://127.0.0.1:8000/``. +When you run this command for the first time, a new folder will be created at the ``KOLIBRI_HOME`` (or the default) path. Inside, a new sqlite database will be created for you and all current database migrations applied on it. + +It may take some time to build the front-end assets, after which you should be able to access the server at ``http://127.0.0.1:8000/``. Alternatively, you can run the devserver with `hot reload `__ enabled using: