From 491040e6e43a0d8d8d1ef3564b8dd8d9e26da09c Mon Sep 17 00:00:00 2001 From: winkidney Date: Thu, 30 Aug 2018 15:35:46 +0800 Subject: [PATCH] Doc: Add description about local_settings support and docker-changes --- README.rst | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index c1e7f0c..540750d 100644 --- a/README.rst +++ b/README.rst @@ -49,15 +49,27 @@ Follow the steps below to install Pinry locally or on any server. This process installs the minimal requirements to run Pinry. For development requirements and procedures, see testing above. +Current docker configuration will just mount source code directory to +docker app directory and run any codes existed in current git branch, +you may also add "local_settings.py" to customize settings without +changing settings file in `pinry/settings`. + - Install the requirements: - Docker - Docker Compose - Set any custom configuration options you need and run:: + cp docker-compose.example.yml docker-compose.yml + # edit docker-compose.yml and change the secret-key, + # don't forget to backup this config file. docker-compose up -d -- Bootstrap the database:: +- If you want to run Pinry with current user in docker:: + + ./start_docker_with_current_user.sh [-d] + +- Bootstrap the database(optional):: docker-compose exec web python3 manage.py migrate --settings=pinry.settings.docker