From bc311b6f278685f67a884a387908517f5cd54f9f Mon Sep 17 00:00:00 2001 From: Charline Laporte Date: Wed, 8 Jan 2025 15:23:22 +0100 Subject: [PATCH 1/3] =?UTF-8?q?CleverCloud:=20Efface=20fichier=20le=20d?= =?UTF-8?q?=C3=A9ploiement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clevercloud/python.json | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 clevercloud/python.json diff --git a/clevercloud/python.json b/clevercloud/python.json deleted file mode 100644 index e7113fa503..0000000000 --- a/clevercloud/python.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "build": { - "cache_dependancies": true - }, - "deploy": { - "managetasks": [ - "buildnpm", - "buildnpmvue3", - "collectstatic --noinput", - "migrate --noinput", - "compilemessages" - ] - } -} From af22a1ac46b1d9f36c2dc4d51280c08591cea9a3 Mon Sep 17 00:00:00 2001 From: Charline Laporte Date: Thu, 9 Jan 2025 10:56:57 +0100 Subject: [PATCH 2/3] =?UTF-8?q?CleverCloud:=20Met=20=C3=A0=20jour=20la=20d?= =?UTF-8?q?ocumentation=20li=C3=A9e=20au=20fichier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clevercloud/test-build-with-vue3.sh | 2 +- docs/ONBOARDING.md | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/clevercloud/test-build-with-vue3.sh b/clevercloud/test-build-with-vue3.sh index 98aa87ca88..e35e605013 100644 --- a/clevercloud/test-build-with-vue3.sh +++ b/clevercloud/test-build-with-vue3.sh @@ -4,7 +4,7 @@ rm -rf static/ rm -rf build/ rm -rf 2024-frontend/build/ bash ./clevercloud/pre-build-hook.sh -# the following should mirror the hooks in clevercloud/python.json["deploy"]["managetasks"] +# the following should mirror the tasks in CC_PYTHON_MANAGE_TASKS env config python manage.py buildnpm python manage.py buildnpmvue3 python manage.py collectstatic --noinput diff --git a/docs/ONBOARDING.md b/docs/ONBOARDING.md index b1bbcf37c3..2fb06206f5 100644 --- a/docs/ONBOARDING.md +++ b/docs/ONBOARDING.md @@ -314,20 +314,21 @@ Des extensions utiles : ## Test déploiement en locale -Les commandes lancées sur CleverCloud sont listées dans `clevercloud/python.json`. - -.env : +1. Modifier sa configuration d'env locale : ``` DEBUG=False DEBUG_FRONT=False ``` -Dans le dossier principal, lancez : -`bash ./clevercloud/test-build-with-vue3.sh` -`python manage.py runserver --insecure` +2. Dans le dossier principal, lancez : + +``` +$ bash ./clevercloud/test-build-with-vue3.sh +$ python manage.py runserver --insecure +``` -En prod, faut ajouter `CC_PRE_BUILD_HOOK=./clevercloud/pre-build-hook.sh` +Pour le déploiement en prod il faut ajouter : `CC_PRE_BUILD_HOOK=./clevercloud/pre-build-hook.sh` ## Déploiement From 21ebfc11de3e1c4580d1768e6396292cb44b7b9b Mon Sep 17 00:00:00 2001 From: Charline Laporte Date: Thu, 9 Jan 2025 10:58:06 +0100 Subject: [PATCH 3/3] CleverCloud: Corrige typo --- docs/ONBOARDING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ONBOARDING.md b/docs/ONBOARDING.md index 2fb06206f5..01c00cdd0a 100644 --- a/docs/ONBOARDING.md +++ b/docs/ONBOARDING.md @@ -321,7 +321,7 @@ DEBUG=False DEBUG_FRONT=False ``` -2. Dans le dossier principal, lancez : +2. Dans le dossier principal lancer : ``` $ bash ./clevercloud/test-build-with-vue3.sh