From d43bf344f46f5f15006aa05a677217384a742a57 Mon Sep 17 00:00:00 2001 From: Jean-Louis Jouannic Date: Fri, 8 Jul 2022 17:49:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20adds=20some=20documentation=20ab?= =?UTF-8?q?out=20deploying=20on=20Clever=20Cloud?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/setup/deployment.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/setup/deployment.md b/docs/setup/deployment.md index bded5b58..4d9d4ccb 100644 --- a/docs/setup/deployment.md +++ b/docs/setup/deployment.md @@ -64,6 +64,31 @@ heroku run python manage.py migrate heroku run python manage.py createcachetable ``` +## Clever Cloud + +To deploy on [Clever Cloud](https://www.clever-cloud.com), log in to your +[Clever Cloud console](https://console.clever-cloud.com/), create a Python +application, link it to a PostgreSQL addon and optionally a Cellar S3 Storage +addon (only if you want file storage for child picture in particular). +Then make sure to set the following environment variables in your Python +application before pushing the babybuddy source code: + +```shell +CC_PYTHON_BACKEND=uwsgi +CC_PYTHON_MANAGE_TASKS=migrate, createcachetable +CC_PYTHON_MODULE=babybuddy.wsgi:application +DJANGO_SETTINGS_MODULE=babybuddy.settings.clever-cloud +SECRET_KEY= +TIME_ZONE= +AWS_STORAGE_BUCKET_NAME= # only if file storage is needed +``` + +See [Configuration](configuration.md) for other environment variables available +for your instance of babybuddy. + +After that, you just have to push babybuddy code repository to the Git +deployment URL of your Clever Cloud Python application. + ## Manual There are many ways to deploy Baby Buddy manually to any server/VPS. The basic