No Description

Olivier Massot 21c1af415b Merge branch 'release/1.1.1' 3 years ago
assets 496032d0cb https://assistance.opentalent.fr/browse/V8-2613 4 years ago
components 7d13aee79f implements multi addresses support 4 years ago
doc 8ebffc98f9 add include docs, minor ui improvement 4 years ago
enums 1054b47e64 structures search - filters ok 4 years ago
lang b83202bd3b v8-2863 various fixes 3 years ago
layouts 594eb71cdd minor style improvements 4 years ago
pages 8bdac8f870 minor css fix 3 years ago
plugins b83202bd3b v8-2863 various fixes 3 years ago
services e33e2394dd finalize multi addresses support 3 years ago
static c4662304b5 include .htaccess into build 3 years ago
tests e57ef23d75 cypress: increase location filter timeout 4 years ago
types b83202bd3b v8-2863 various fixes 3 years ago
.babelrc aadb3aaa64 nuxt init 4 years ago
.editorconfig aadb3aaa64 nuxt init 4 years ago
.env.ci 9383fb5a54 update .env files 4 years ago
.env.local 9383fb5a54 update .env files 4 years ago
.env.preprod 9383fb5a54 update .env files 4 years ago
.env.prod 9383fb5a54 update .env files 4 years ago
.eslintrc.js aadb3aaa64 nuxt init 4 years ago
.gitignore 5838dcaec0 cypress tests on /structures ok 4 years ago
.gitlab-ci.yml bcc655e319 mv test into tests, add test-utils, configure jest 4 years ago
README.md a021a78be4 update readme 4 years ago
cypress.json bcc655e319 mv test into tests, add test-utils, configure jest 4 years ago
ecosystem.config.js e3af5bcf9d update start / build / deploiement configs 4 years ago
jest.config.js c12c73b678 finalize jest setup and config 4 years ago
logo.png a6ac6d668a structures: performances optimization 4 years ago
nuxt.config.js 48f9029036 update default theme color 4 years ago
package-lock.json 4265cf4b4c add iframeResizer.js 4 years ago
package.json c12c73b678 finalize jest setup and config 4 years ago
todo.md fde6059a4d style improvements 4 years ago
tsconfig.json c12c73b678 finalize jest setup and config 4 years ago
yarn.lock c12c73b678 finalize jest setup and config 4 years ago

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

Si le fichier .env n'existe pas, on créé un symlink vers le .env.xxx voulu sous le nom de .env (selon l'environnement)

ln -s .env.xxx .env

Le projet frames n'utilisant pas le SSR, on n'a pas besoin de PM2 pour faire tourner un service. On lance la commande :

yarn deploy

Cette commande est un alias qui équivaut à lancer les commandes suivantes: git pull && yarn install && yarn build

S'il n'existe pas encore, il faut aussi créer un fichier dist/.htaccess contenant les lignes suivantes :

<ifModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule (.*) index.html [QSA,L]
</ifModule>

Revenir à une version précédente

Pour revenir à une version précédente:

git reset --hard <id du commit>
yarn build

**/!\ Non testé: ** Si la version précédente implique des version différentes des node_modules, il faudra sans doute supprimer le répertoire node_modules et le fichier yarn.lock, et relancer un yarn install

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