Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(CleverCloud): Efface fichier le déploiement pour le remplacer par des variables d'env #4862

Open
wants to merge 3 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions clevercloud/python.json

This file was deleted.

2 changes: 1 addition & 1 deletion clevercloud/test-build-with-vue3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 8 additions & 7 deletions docs/ONBOARDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 lancer :

```
$ 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

Expand Down
Loading