Skip to content
Snippets Groups Projects
Commit 0f0a9291 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

update environments

parent c918275e
No related branches found
No related tags found
No related merge requests found
...@@ -2,28 +2,36 @@ ...@@ -2,28 +2,36 @@
We have 2 environments available for this project: 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 ## 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. 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. 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. 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 ```console
ssh root@51.158.104.84 -L 8082:localhost:5984 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 ### Cozy stack
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment