Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Mention Docker and CircleCI in docs

Patryk Zawadzki9eb83950b716
diff --git a/docs/deploy.rst b/docs/deploy.rst
index c21847fc5e..769ac1bfe6 100644
--- a/docs/deploy.rst
+++ b/docs/deploy.rst
@@ -1,46 +1,25 @@
Deployment
==========
+.. _docker:
+
Docker
------
+You will need to install Docker first.
-Local prerequisites
-*******************
-
-You will need to install Docker and
-`docker-compose <https://docs.docker.com/compose/install/>`_ before
-performing the following steps.
-
-Usage
-*****
-
-1. Build ``Saleor`` with ``docker-compose``
-
- .. code::
-
- $ docker-compose build
-
+Before building the image make sure you have all of the front-end assets prepared for production:
-2. Prepare the database
-
- .. code::
-
- $ docker-compose run web python manage.py migrate
- $ docker-compose run web python manage.py populatedb --createsuperuser
-
- The ``--createsuperuser`` switch creates an admin account for
- ``[email protected]`` with the password set to ``admin``.
-
-
-3. Run ``Saleor``
+.. code::
- .. code::
+ $ npm run build-assets
+ $ python manage.py collectstatic
- $ docker-compose up
+Then use Docker to build the image:
+.. code::
-By default, the application is configured to listen on port ``8000``.
+ $ docker build -t mystorefront .
Heroku
diff --git a/docs/development.rst b/docs/development.rst
index 18f9af7ab7..19bd17d770 100644
--- a/docs/development.rst
+++ b/docs/development.rst
@@ -73,3 +73,60 @@ To do so you can use `Tox <https://tox.readthedocs.io/en/latest/>`_:
.. code:: bash
$ tox
+
+
+Continuous integration
+----------------------
+
+The storefront ships with a working `CircleCI <https://circleci.com/>`_ configuration file.
+To use it log into your CircleCI account and enable your repository.
+
+
+Docker
+------
+
+Using Docker to build software allows you to run and test code without having to worry about external dependencies such as cache servers and databases.
+
+.. warning::
+
+ The following setup is only meant for local development.
+ See :ref:`docker` for production use of Docker.
+
+
+Local prerequisites
+*******************
+
+You will need to install Docker and
+`docker-compose <https://docs.docker.com/compose/install/>`_ before
+performing the following steps.
+
+
+Usage
+*****
+
+1. Build the containers using ``docker-compose``
+
+ .. code::
+
+ $ docker-compose build
+
+
+2. Prepare the database
+
+ .. code::
+
+ $ docker-compose run web python manage.py migrate
+ $ docker-compose run web python manage.py populatedb --createsuperuser
+
+ The ``--createsuperuser`` switch creates an admin account for
+ ``[email protected]`` with the password set to ``admin``.
+
+
+3. Run the containers
+
+ .. code::
+
+ $ docker-compose up
+
+
+By default, the application is started in debug mode, will automaticall reload code and is configured to listen on port ``8000``.