بدون توضیح

Olivier Massot 5190eb674e update cypress 4 سال پیش
assets 496032d0cb https://assistance.opentalent.fr/browse/V8-2613 4 سال پیش
components a5b1ea809b revert previous commit 4 سال پیش
enums 1054b47e64 structures search - filters ok 4 سال پیش
lang 496032d0cb https://assistance.opentalent.fr/browse/V8-2613 4 سال پیش
layouts 496032d0cb https://assistance.opentalent.fr/browse/V8-2613 4 سال پیش
pages 39af4ef3d6 replace nuxt/images by vuetify images 4 سال پیش
plugins 63c6b5e1df implements theming 4 سال پیش
services 52f746667d add url parameters, disable SSR, include new structure data 4 سال پیش
static 8e062e5dc1 graphic improvements and routing fixes 4 سال پیش
store aadb3aaa64 nuxt init 4 سال پیش
test 2c26fe9bf7 fix cypress tests 4 سال پیش
types 52f746667d add url parameters, disable SSR, include new structure data 4 سال پیش
.babelrc aadb3aaa64 nuxt init 4 سال پیش
.editorconfig aadb3aaa64 nuxt init 4 سال پیش
.env.ci 9383fb5a54 update .env files 4 سال پیش
.env.local 9383fb5a54 update .env files 4 سال پیش
.env.preprod 9383fb5a54 update .env files 4 سال پیش
.env.prod 9383fb5a54 update .env files 4 سال پیش
.eslintrc.js aadb3aaa64 nuxt init 4 سال پیش
.gitignore 5838dcaec0 cypress tests on /structures ok 4 سال پیش
.gitlab-ci.yml e3af5bcf9d update start / build / deploiement configs 4 سال پیش
README.md e3af5bcf9d update start / build / deploiement configs 4 سال پیش
cypress.json f6dab45993 fix CI 4 سال پیش
ecosystem.config.js e3af5bcf9d update start / build / deploiement configs 4 سال پیش
jest.config.js f02ca7420f minor fixes and tests skeletton 4 سال پیش
logo.png a6ac6d668a structures: performances optimization 4 سال پیش
nuxt.config.js 39af4ef3d6 replace nuxt/images by vuetify images 4 سال پیش
package.json e3af5bcf9d update start / build / deploiement configs 4 سال پیش
todo.md 63c6b5e1df implements theming 4 سال پیش
tsconfig.json 0eee2f60ce refactor fetchers into a provider service 4 سال پیش
yarn.lock 5190eb674e update cypress 4 سال پیش

README.md

Frames

pipeline status

Frames est une application Nuxt proposant des iframes à inclure sur des sites tierces.

Iframes implémentées:

A voir:

Opérations courantes

Déploiement

Premier déploiement en tant que service

Prérequis 1 : PM2 doit être installé de manière globale sur la machine hôte (https://nuxtjs.org/deployments/pm2/)

On commence par cloner le projet app, puis par se placer dans le répertoire ainsi créé. On créé un symlink vers le fichier .env.xxx voulu sous le nom de .env (selon l'environnement)

ln -s .env.xxx .env

Pour déployer le projet en mode SSR, on commence par mettre à jour et compiler :

yarn install
yarn build

On lance ensuite le service avec :

pm2 start

Vérifier le statut avec :

pm2 show frames

On pourra ensuite interagir avec le service ainsi :

pm2 restart frames
pm2 stop frames
pm2 logs frames

On enregistre le service pour qu'il soit relancé lors du boot de la machine: https://pm2.keymetrics.io/docs/usage/startup/

En tant que non-root:

pm2 startup

Puis, comme la commande précédente le suggère, on lance en tant que root:

On sauvegarde la nouvelle configuration avec:

pm2 save

Mettre à jour

Se placer dans le répertoire de l'application, puis lancer:

yarn deploy

Cette commande est un alias qui équivaut à lancer:

git pull
yarn install
yarn build
pm2 restart

Run tests

To run unit tests:

yarn test

To run end-to-end tests with Cypress:

yarn cypress

To run it in command line:

yarn cypress:run