Explorar o código

update deployment commands and doc

Olivier Massot %!s(int64=4) %!d(string=hai) anos
pai
achega
755458f863
Modificáronse 2 ficheiros con 5 adicións e 40 borrados
  1. 4 35
      README.md
  2. 1 5
      package.json

+ 4 - 35
README.md

@@ -16,54 +16,23 @@ A voir:
 * [typescriptlang.org](https://www.typescriptlang.org/)
 * [jestjs.io](https://jestjs.io/docs/getting-started)
 * [cypress.io](https://docs.cypress.io/guides/getting-started/installing-cypress)
-* [pm2.keymetrics.io](https://pm2.keymetrics.io/docs/usage/quick-start//)
 
 
 ## 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)
+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
 
-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
-
-
-### Mettre à jour
-
-Se placer dans le répertoire de l'application, puis lancer:
+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:
+> Cette commande est un alias qui équivaut à lancer les commandes suivantes: `git pull && yarn install && yarn build`
 
-    git pull
-    yarn install
-    yarn build
-    pm2 restart
 
 ## Run tests
 

+ 1 - 5
package.json

@@ -12,11 +12,7 @@
     "build:local": "yarn build --dotenv .env.local",
     "build:preprod": "yarn build --dotenv .env.preprod",
     "build:prod": "yarn build --dotenv .env.prod",
-    "start": "nuxt start --hostname '127.0.0.1' --port 3004",
-    "start:local": "yarn start --dotenv .env.local",
-    "start:preprod": "yarn start --dotenv .env.preprod",
-    "start:prod": "yarn start --dotenv .env.prod",
-    "deploy": "git pull && yarn install && yarn build && pm2 start frames",
+    "deploy": "git pull && yarn install && yarn build",
     "lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
     "lint": "yarn lint:js",
     "test": "jest",