From 617bc94a1b2ccda6f5ce43bb378a0520fc6190dd Mon Sep 17 00:00:00 2001 From: Alice Poggioli <alice.poggioli@paca.happy-dev.fr> Date: Mon, 10 Aug 2020 16:07:38 +0200 Subject: [PATCH] fix server installation --- .../install-sib-server.rst | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/source/import_documentation/install-sib-server.rst b/source/import_documentation/install-sib-server.rst index 3bfd040..e0d33ac 100644 --- a/source/import_documentation/install-sib-server.rst +++ b/source/import_documentation/install-sib-server.rst @@ -121,16 +121,21 @@ This configuration works for a local development server but for a production ins jabber_host: 'happy-dev.fr' -Launch the installation -======================== - -Install/update the project: +Make your migration +=================== .. code-block:: bash - sib install sibserver + python manage.py migrate + +Create your super user +=================== + +.. code-block:: bash + python manage.py createsuperuser +Follow the instructions you get in your terminal. Launch the server ================== @@ -143,10 +148,21 @@ Run the server in development: Then go to `http://127.0.0.1:8000/admin/ <http://127.0.0.1:8000/admin/>`__ to acces to your Django administration. -Jump to the `How to develop SIB server packages <https://docs.startinblox.com/import_documentation/develop-sib-ldp-packages.html>`__ section to create your first package. +Enter the identifier you've just created and you shoud see the Django admin. +.. warning:: + In some case, you could get this kind of error : `no such table: djangoldp_xyz_abc`. Enter this command to solve it : `python3 manage.py migrate --run-syncdb` +To update the installation +======================== + +Install/update the project: + +.. code-block:: bash + + sib install sibserver + To launch the server in production: ------------------------------------ -- GitLab