|
@@ -37,6 +37,25 @@ $ yarn docs
|
|
|
|
|
|
|
|
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
|
|
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
|
|
|
|
|
|
|
|
|
|
+## Déployer comme un service
|
|
|
|
|
+
|
|
|
|
|
+> Prérequis : PM2 doit être installé de manière globale (https://nuxtjs.org/deployments/pm2/)
|
|
|
|
|
+
|
|
|
|
|
+Pour déployer le projet en mode SSR :
|
|
|
|
|
+
|
|
|
|
|
+ yarn build
|
|
|
|
|
+ pm2 start
|
|
|
|
|
+
|
|
|
|
|
+Vérifier le statut avec :
|
|
|
|
|
+
|
|
|
|
|
+ pm2 show app
|
|
|
|
|
+
|
|
|
|
|
+On pourra ensuite interagir avec le service ainsi :
|
|
|
|
|
+
|
|
|
|
|
+ pm2 restart app
|
|
|
|
|
+ pm2 stop app
|
|
|
|
|
+ pm2 logs app
|
|
|
|
|
+
|
|
|
## Structure du projet
|
|
## Structure du projet
|
|
|
|
|
|
|
|
| Répertoire | Rôle |
|
|
| Répertoire | Rôle |
|