Newer
Older
This section will show you how to deploy your project on different environments.
## Setup
First of all you'll need to install [MobaXterm](https://mobaxterm.mobatek.net/download.html) in order to connect to the server.
Then, if your're on Linux you can skip the following section, otherwise if you are on Windows you'll have to install Windows Subsystem for Linux (WSL) since the deployment of the app is not working with windows commands.
First open a new session and connect to the distant host **51.158.104.84**. Don't forget to add the path to the private key in the advanced SSH settings. Also don't forget to ask an administrator to add your public key so you can access the server.
There is 2 environment you can deploy on alpha for testing:
If you use windows, make sure you have WSL installed and a Linux distribution. For more information about it see the (Install WSL section)[../getting_started/setup_your_environment.md]
First open your Ubuntu terminal (or any other distribution you've installed), and clone the project in the repertory of your choice. Once you've selected the branch of you want to deploy, write the following command :
After this, you can launch the deployment.
In order to deploy on ecolyo_dev (development environment) use the command :
If you want to deploy on the ecolyo-build environment, use :
To deploy on the llle-build environment, you'll have to drag and drop your build folder directly in llle-build using MobaXterm.
From your current branch, run `yarn build` then `sudo yarn deploy_dev` to instantly deploy your working branch on the latest tagged Ecolyo-dev container registry.
If you want to create a specific instance, please ask for the admin.
Once you've deployed your branch, connect to Scaleway server using mobaXterm (or any other software), and then go to the admin-scripts folder in easy-cozy
If you want to reset your instance, use the script reset_instance.sh with the name of your instance
You'll be prompted for the complete url of your instance in order to confirm the reset
After this, you'll have to activate your cozy instance by clicking on the prompted url with the registration token and choose a password for your instance.
Once it is done, you can process on the update of your app.
#### Update Ecolyo App
In order to update your app, you can execute the script depending on the branch you deployed. Keep in mind to prioritize using ecolyo_test for your testings.
```
./update_ecolyo_test.sh <instance-name>
```
Now you can access your updated version of Ecolyo with the following URl, enjoy : `ecolyo.instance-name.cozy.self-data.alpha.grandlyon.com`