Skip to content
Snippets Groups Projects

!!! info "" 🚧 Section under Construction 🚧

This section will show you how to deploy your project on different environments.

Setup

First of all you'll need to install MobaXterm 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.

Install WSL

First open Powershell as administrator and launch the following command :

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

This command will install WSL on your computer. After this, you'll need to reboot.

Install your Linux distribution

After reboot, open the microsoft store and install the distribution of your choice (for example : Ubuntu 20.04 LTS). Once it's done, open it and after a few minutes you'll be prompted for the creation of a user account.

To make sure it's correctly installed and working, you can open Powershell and paste the following command :

wsl.exe --list --running

Now you should see the name of your distribution in the list.

Setup your distribution

Start Up Updating the packages list by typing :

sudo apt update

Install the nodejs using the apt package manager

sudo apt install 

To verify the Installation execute the following command :

nodejs --version

To be able to download npm package, you need to install the npm, the Node.js package manager. To do so type :

sudo apt install npm

To verify the npm Install check using the command :

npm --version

To Downlaod and Setup Yarn

sudo apt install yarn

To check the Installed version of Yarn :

yarn --version

Now you'll probably be in version 0.23+git, if so you'll have to upgrade to 1.22 to make everything work properly. In order to achieve this, you'll have to launch several commands :

sudo apt-get remove cmdtest
sudo apt autoremove
sudo apt-get update
sudo apt install curl -y
curl -o- -L https://yarnpkg.com/install.sh | bash
source ~/.bashrc

Now you should be at least in version ^1.22 and ready to go on.

Configuration of MobaXterm

First open a new session and connect to the distant host 192.168.62.31. Don't forget to add the path to the private key in the advanced SSH settings.

Deploy Pilote

Deploy on Alpha

Windows

First open your Ubuntu terminal, 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 :

yarn build

After this, you can launch the deployment. In order to deploy on pilote-dev-build (development environment) use the command :

yarn deploy-dev

If you want to deploy on the pilote-build environment, use :

yarn deploy

To deploy on the llle-build environment, you'll have to drag and drop your build folder directly in llle-build using MobaXterm.

Linux

From your current branch, run yarn build then sudo yarn deploy_dev to instantly deploy your working branch on the latest tagged Pilote container registry.