You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ To have an up to date database schema run `mix ecto.migrate`.
73
73
### Restoring the production database
74
74
75
75
The production database does not contains any sensitive data, you can retreive it for dev purpose.
76
-
* You can retrieve the [latest clever-cloud backup](https://console.clever-cloud.com/organisations/orga_f33ebcbc-4403-4e4c-82f5-12305e0ecb1b/addons/addon_beebaa5e-c3a4-4c57-b124-cf9d1473450a) (you need some permissions to access it, if you don't have them, you can ask someone on the team to give you the database)
76
+
* You can retrieve the [latest Clever Cloud backup](https://console.clever-cloud.com/organisations/orga_f33ebcbc-4403-4e4c-82f5-12305e0ecb1b/addons/addon_beebaa5e-c3a4-4c57-b124-cf9d1473450a) (you need some permissions to access it, if you don't have them, you can ask someone on the team to give you the database)
77
77
* On the clever-cloud website, under transport-site-postgresql, there is a Backups section with download links.
78
78
* restore the downloaded backup on you database: `./restore_db.sh <path_to_the_backup>`
79
79
@@ -130,7 +130,7 @@ If you need to login via `demo.data.gouv.fr`, follow these steps:
130
130
131
131
```elixir
132
132
config :oauth2, Datagouvfr.Authentication,
133
-
# go to CleverCloud staging site and pick `DATAGOUVFR_CLIENT_ID`
133
+
# go to Clever Cloud staging site and pick `DATAGOUVFR_CLIENT_ID`
134
134
client_id:"TODO-REPLACE",
135
135
# same but use `DATAGOUVFR_CLIENT_SECRET`
136
136
client_secret:"TODO-REPLACE"
@@ -280,9 +280,9 @@ The following domain names are currently in use by the deployed Elixir app:
Copy file name to clipboardexpand all lines: docs/upgrade_versions.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Une première image Docker est mise à disposition par le dépôt tranport-ops :
6
6
7
7
L’application transport-site récupère l’image Docker de transport-ops, et y rajoute uniquement son propre code, le compile, lance le serveur, les migrations, et expose le serveur à l’extérieur.
8
8
9
-
CircleCI pour les tests va donc faire ces étapes là de compilation du code Elixir, mais sans devoir reconstruire toute l’image (puisque s’appuyant sur l’image de transport-ops). Quand on pousse sur les serveurs de CleverCloud, un premier serveur va créer l’image Docker finale (mêmes étapes que sur CircleCI, donc un temps de compilation existe) puis déployer l’image résultante sur un autre serveur. Potentiellement, on pourrait réduire à l’avenir le temps de déploiement en fournissant directement l’image Docker avec l’application précompilée, et que la même image serve pour les tests et pour la production.
9
+
CircleCI pour les tests va donc faire ces étapes là de compilation du code Elixir, mais sans devoir reconstruire toute l’image (puisque s’appuyant sur l’image de transport-ops). Quand on pousse sur les serveurs de Clever Cloud, un premier serveur va créer l’image Docker finale (mêmes étapes que sur CircleCI, donc un temps de compilation existe) puis déployer l’image résultante sur un autre serveur. Potentiellement, on pourrait réduire à l’avenir le temps de déploiement en fournissant directement l’image Docker avec l’application précompilée, et que la même image serve pour les tests et pour la production.
*`clever link $$REPLACE_BY_APP_ID$$` (pick `app_id` in the CleverCloud dashboard for `transport-site`)
71
+
*`clever link $$REPLACE_BY_APP_ID$$` (pick `app_id` in the Clever Cloud dashboard for `transport-site`)
72
72
*`clever status`
73
73
*`clever logs --help`
74
74
*`clever logs` to stream the current logs
@@ -77,14 +77,14 @@ This guide tracks useful steps to learn how to maintain and modify this system.
77
77
### Learn how to deploy the Elixir app on staging (aka "prochainement")
78
78
79
79
* Use a force push of your branch, e.g. `git push <remote> <branche>:prochainement -f` (so if your branch is `some-feature`, this will usually be: `git push origin some-feature:prochainement -f`)
80
-
* This will trigger a redeploy. Redeploy process can be monitored from the [CleverCloud dashboard](https://www.clever-cloud.com) and takes roughly 5 to 10 minutes.
80
+
* This will trigger a redeploy. Redeploy process can be monitored from the [Clever Cloud dashboard](https://www.clever-cloud.com) and takes roughly 5 to 10 minutes.
81
81
* If you see errors in the CC app logs due to Ecto migrations (due to divergence of branches), you'll want to reset the staging database (see below)
82
82
83
83
### Learn how to reset the staging (aka "prochainement") database
84
84
85
-
* Go to the CleverCloud dashboard for the production Postgres database and download it locally
85
+
* Go to the Clever Cloud dashboard for the production Postgres database and download it locally
86
86
* Read the [restore_db.sh](https://github.com/etalab/transport-site/blob/master/restore_db.sh) script
87
-
* Go to the CleverCloud dashboard for the **staging** Postgres database, and run `restore_db.sh` with proper parameters
87
+
* Go to the Clever Cloud dashboard for the **staging** Postgres database, and run `restore_db.sh` with proper parameters
0 commit comments