diff --git a/docs/ecolyo/Technical/environments.md b/docs/ecolyo/Technical/environments.md index 3b957363a9d79b9d3ca0ce90871d38cbaa1a6c82..647eef81ffc1f17e809c17500c9823d13cefd00a 100644 --- a/docs/ecolyo/Technical/environments.md +++ b/docs/ecolyo/Technical/environments.md @@ -2,28 +2,36 @@ We have 2 environments available for this project: -- A dev environment hosted on scaleway and managed by the dev team -- A prod environment hosted on Cozy and managed by Cozy +- A **prod** environment hosted on Cozy and managed by Cozy +- A **dev** environment hosted on scaleway and managed by the dev team ## Dev environment aka alpha -The dev environment has been mounted on a dedicated instance on scaleway. - -### Access to the dev environment - You need to install an ssh tool like Putty or [MobaXterm](https://mobaxterm.mobatek.net/download.html) in order to connect to the server. Connection to the server is made using ssh key, you need to generate your own and ask administrator to allow your ssh key. Once done, you should be able to connect to the server using your private key. -#### CouchDB +### CouchDB from Alpha -To connect to the database from your local computer, you can run the following command to create a SSH tunnel with local port forwarding : +To connect to the database from your local computer, you need to create an SSH tunnel and forward ports to your local machine : ```console ssh root@51.158.104.84 -L 8082:localhost:5984 ``` -Then you can browse to [http://localhost:8082/\_utils/](http://localhost:8082/_utils/) and enter the credentials specified in the file easy-cozy/docker-compose.yml +Then you can browse to [http://localhost:8082/\_utils/](http://localhost:8082/_utils/) and enter the credentials specified in the file `easy-cozy/docker-compose.yml` + +#### Access data from an instance + +The DB contains tables for each instance. They all are prefixed with a hash. To see instances hashes, search for `global/instances` you will find documents containing `domains` & `prefix`. + +The **prefix** will allow you to search for specific tables among the instances. + +:::note Example + +`cozyc5eac7b18cb26075ac6aa8233748dfd2/com-grandlyon-ecolyo-profile` + +::: ### Cozy stack