Giter Site home page Giter Site logo

Passage à NodeJS 6 about aides-jeunes-ops HOT 4 CLOSED

guillett avatar guillett commented on July 30, 2024
Passage à NodeJS 6

from aides-jeunes-ops.

Comments (4)

guillett avatar guillett commented on July 30, 2024

Validation du processus de mise en production

Conclusions des tests de mise à jour avec Vagrant.

Protocole de test

  • Déploiement de master avec Vagrant

  • Déplacement de /home/ubuntu/mes-aides-ui/node_modules vers /home/ubuntu/node_modules

  • Modification de /opt/mes-aides/ui_target_revision (=origin/bump)

  • Modification de /opt/mes-aides/ops_target_revision (=origin/node_6)

  • Lancement de provisioning via ssh

  • Lancement d'une simulation

  • OpenFisca timeout

  • Ajout en local d'un timeout dans la configuration d'OpenFisca (/home/ubuntu/mes-aides-ui/openfisca/api_config.ini)

  • service openfisca restart

from aides-jeunes-ops.

guillett avatar guillett commented on July 30, 2024

Sur Vagrant, OpenFisca timeout lors du calcul d'une simulation.

from aides-jeunes-ops.

guillett avatar guillett commented on July 30, 2024

Procédures de mise à jour du VPS

Scripts

  • Déplacement de node_modules (car bson et kerberos sont utilisés)
  • Lancement du provisioning

Migration

sudo --user ubuntu mv /home/ubuntu/mes-aides-ui/node_modules /home/ubuntu/node_modules_0.10 &&
/opt/mes-aides/update.sh provision

Rollback

  • Suppression des dépendances Node 6
  • Remise en place des dépendances Node 0.10
  • Mise de la cible mes-aides-ui vers le SHA1 du origin/master actuel
  • Lancement du provisioning
rm -fr /home/ubuntu/mes-aides-ui/node_modules &&
sudo --user ubuntu mv /home/ubuntu/node_modules_0.10 /home/ubuntu/mes-aides-ui/node_modules &&
echo 72973ce2e601e8abc66edec2a98da761d86a50cb > /opt/mes-aides/ui_target_revision &&
/opt/mes-aides/update.sh provision

from aides-jeunes-ops.

guillett avatar guillett commented on July 30, 2024

Done manually on metal.
Done on VPS via #31 (comment)

from aides-jeunes-ops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.