Skip to content

Commit 1b989d3

Browse files
authored
Correction nommage "Clever Cloud" dans la doc (#4369)
* Add useful changelogs to the README * Fix Clever Cloud brand name * Fix link
1 parent 7654355 commit 1b989d3

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ To have an up to date database schema run `mix ecto.migrate`.
7373
### Restoring the production database
7474

7575
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)
7777
* On the clever-cloud website, under transport-site-postgresql, there is a Backups section with download links.
7878
* restore the downloaded backup on you database: `./restore_db.sh <path_to_the_backup>`
7979

@@ -130,7 +130,7 @@ If you need to login via `demo.data.gouv.fr`, follow these steps:
130130

131131
```elixir
132132
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`
134134
client_id: "TODO-REPLACE",
135135
# same but use `DATAGOUVFR_CLIENT_SECRET`
136136
client_secret: "TODO-REPLACE"
@@ -280,9 +280,9 @@ The following domain names are currently in use by the deployed Elixir app:
280280
* jobs: https://workers.prochainement.transport.data.gouv.fr
281281
* proxy: https://proxy.prochainement.transport.gouv.fr
282282

283-
These names are [configured via a CNAME on CleverCloud](https://www.clever-cloud.com/doc/administrate/domain-names/#using-personal-domain-names).
283+
These names are [configured via a CNAME on Clever Cloud](https://www.clever-cloud.com/doc/administrate/domain-names/#using-personal-domain-names).
284284

285-
The corresponding SSL certificates are auto-generated via Let's Encrypt and CleverCloud.
285+
The corresponding SSL certificates are auto-generated via Let's Encrypt and Clever Cloud.
286286

287287
# Uptime monitoring (updown.io)
288288

@@ -296,7 +296,7 @@ The following URLs are currently monitored via updown.io (with email & Mattermos
296296

297297
# Useful changelogs
298298

299-
* https://developers.clever-cloud.com/changelog/ for CleverCloud components (e.g. Postgres)
299+
* https://developers.clever-cloud.com/changelog/ for Clever Cloud components (e.g. Postgres)
300300
* [.tool-versions](.tool-versions) for Elixir & Erlang
301301

302302
# Blog

apps/transport/lib/mix/tasks/logs.ex

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
defmodule Mix.Tasks.Clever.Logs do
2-
@shortdoc "Fetches logs from CleverCloud"
2+
@shortdoc "Fetches logs from Clever Cloud"
33

44
@moduledoc """
5-
The CleverCloud logs command currently has strong limitations, including a maximum of
5+
The Clever Cloud logs command currently has strong limitations, including a maximum of
66
1000 lines of logs per command invocation (https://github.com/CleverCloud/clever-tools/issues/429)
77
and a lack of auto-pagination.
88
@@ -14,10 +14,10 @@ defmodule Mix.Tasks.Clever.Logs do
1414
mix clever.logs --since "2021-01-25T04:00:00Z" --before "2021-01-25T04:10:00Z" --alias "the-app"
1515
```
1616
17-
The switches mimic the CleverCloud logs ones:
17+
The switches mimic the Clever Cloud logs ones:
1818
* `--since`: start time (ISO8601 Z). Defaults to "24 hours ago".
1919
* `--before`: end time (ISO8601 Z). Defaults to "now".
20-
* `--alias`: name of the CleverCloud app.
20+
* `--alias`: name of the Clever Cloud app.
2121
"""
2222

2323
require Logger

config/config.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ config :ex_aws,
142142
access_key_id: System.get_env("CELLAR_ACCESS_KEY_ID"),
143143
secret_access_key: System.get_env("CELLAR_SECRET_ACCESS_KEY"),
144144
# The expected S3 owner of buckets/objects.
145-
# For CleverCloud and the Cellar service, it looks like `orga-$UUID`
145+
# For Clever Cloud and the Cellar service, it looks like `orga-$UUID`
146146
cellar_organisation_id: System.get_env("CELLAR_ORGANISATION_ID"),
147147
# ~s is a string parameter, it will be replaced by the bucket's name
148148
cellar_url: "https://~s.cellar-c2.services.clever-cloud.com",

config/runtime.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ if config_env() == :prod do
278278
end
279279
end
280280

281-
# On CleverCloud, each container gets assigned a UUID, which gets propagated to AppSignal.
281+
# On Clever Cloud, each container gets assigned a UUID, which gets propagated to AppSignal.
282282
# It is easier to assign the container a "role" so that we can more easily charts relevant metrics.
283283
host_role =
284284
[]

docs/upgrade_versions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Une première image Docker est mise à disposition par le dépôt tranport-ops :
66

77
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.
88

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.
1010

1111
## Processus de mise à jour
1212

learning_track.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ This guide tracks useful steps to learn how to maintain and modify this system.
6363

6464
### Read the logs from the production database
6565

66-
* The site is deployed on [CleverCloud](https://www.clever-cloud.com/)
66+
* The site is deployed on [Clever Cloud](https://www.clever-cloud.com/)
6767
* Install [`clever-tools`](https://github.com/CleverCloud/clever-tools)
6868
* `clever login`
6969
* `clever --help`
7070
* Go to your local `transport-site` git clone
71-
* `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`)
7272
* `clever status`
7373
* `clever logs --help`
7474
* `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.
7777
### Learn how to deploy the Elixir app on staging (aka "prochainement")
7878

7979
* 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.
8181
* 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)
8282

8383
### Learn how to reset the staging (aka "prochainement") database
8484

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
8686
* 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
8888

8989
### Learn how to connect via SSH
9090

restore_db.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Usage ./restore_db.sh <db_name> <host> <user_name> <password> <absolute_path_to_backup>
66
# or the ./restore_db.sh <absolute_path_to_backup> if the default options are ok for you
7-
# the latest production backup can be fetched on "transport-site-postgresql" in clevercloud
7+
# the latest production backup can be fetched on "transport-site-postgresql" in Clever Cloud
88
#
99
# With the flag `--skip-extensions`, you can also skip extensions restoration as those might require administrative
1010
# rights your pg user doesn't have. Example:

0 commit comments

Comments
 (0)