2023-03-19 13:23:55 +00:00
|
|
|
echo "[Neutral-Deploy] - Stage - Déploiement - START "
|
|
|
|
echo "[Neutral-Deploy] - Arrêt de Neutral : Processing"
|
2023-03-19 13:28:50 +00:00
|
|
|
cd /home/gitlab-ci
|
2023-03-19 13:44:21 +00:00
|
|
|
pwd
|
2023-03-19 13:23:55 +00:00
|
|
|
pm2 stop Neutral
|
2023-03-19 13:26:21 +00:00
|
|
|
pm2 delete Neutral
|
2023-03-19 13:23:55 +00:00
|
|
|
echo "[Neutral-Deploy] - Arrêt de Neutral : Success"
|
|
|
|
echo "[Neutral-Deploy] - Supression de Neutral : Processing"
|
|
|
|
rm -rf ./neutral
|
|
|
|
echo "[Neutral-Deploy] - Supression de Neutral : Success"
|
|
|
|
echo "[Neutral-Deploy] - Installation de Neutral : Processing"
|
2023-03-19 13:44:21 +00:00
|
|
|
git config --global user.name "raphix"
|
2023-03-19 13:23:55 +00:00
|
|
|
git clone https://git.raphix.fr/infrastructure/neutral.git
|
|
|
|
echo "[Neutral-Deploy] - Installation de Neutral : Success"
|
|
|
|
echo "[Neutral-Deploy] - Installation des dépendances : Processing"
|
2023-03-19 13:44:21 +00:00
|
|
|
cd /home/gitlab-ci/neutral
|
|
|
|
pwd
|
2023-03-19 13:23:55 +00:00
|
|
|
npm install
|
|
|
|
echo "[Neutral-Deploy] - Installation des dépendances : Success"
|
|
|
|
echo "[Neutral-Deploy] - Démarrage de Neutral : Processing"
|
2023-03-19 13:44:21 +00:00
|
|
|
cd /home/gitlab-ci
|
|
|
|
pwd
|
2023-03-19 13:23:55 +00:00
|
|
|
pm2 start neutral.config.js
|
|
|
|
echo "[Neutral-Deploy] - Démarrage de Neutral : Success"
|
|
|
|
echo "[Neutral-Deploy] - Stage - Déploiement - END"
|