浏览代码

update env implementations and yarn scripts

Olivier Massot 4 年之前
父节点
当前提交
1e70ef2a65
共有 4 个文件被更改,包括 11 次插入6 次删除
  1. 2 1
      .env.preprod
  2. 2 1
      .env.prod
  3. 1 1
      README.md
  4. 6 3
      package.json

+ 2 - 1
.env.preprod

@@ -11,4 +11,5 @@ SSR_ADMINLEG_BASE_URL=https://local.admin.opentalent.fr/#
 CLIENT_ADMINLEG_BASE_URL=https://local.admin.opentalent.fr/#
 
 # Typo3 Base Url
-TYPO3_BASE_URL=https://preprod.opentalent.fr/###subDomain###
+SSR_TYPO3_BASE_URL=https://preprod.opentalent.fr/###subDomain###
+CLIENT_TYPO3_BASE_URL=https://preprod.opentalent.fr/###subDomain###

+ 2 - 1
.env.prod

@@ -11,4 +11,5 @@ SSR_ADMINLEG_BASE_URL=https://admin.opentalent.fr/#
 CLIENT_ADMINLEG_BASE_URL=https://admin.opentalent.fr/#
 
 # Typo3 Base Url
-TYPO3_BASE_URL=https://###subDomain###.opentalent.fr
+SSR_TYPO3_BASE_URL=https://###subDomain###.opentalent.fr
+CLIENT_TYPO3_BASE_URL=https://###subDomain###.opentalent.fr

+ 1 - 1
README.md

@@ -19,7 +19,7 @@ A voir:
 
 ## Opérations courantes
 
-### Déployer comme un service
+### Déployer en tant que service
 
 > Prérequis : PM2 doit être installé de manière globale sur la machine hôte (https://nuxtjs.org/deployments/pm2/)
 

+ 6 - 3
package.json

@@ -3,12 +3,15 @@
   "version": "0.1.0",
   "private": true,
   "scripts": {
-    "dev": "nuxt --hostname '0.0.0.0' --port 3002",
-    "build": "nuxt build",
+    "dev": "yarn dev:local",
+    "dev:local": "nuxt --hostname '0.0.0.0' --port 3002 --dotenv .env.local",
+    "dev:preprod": "nuxt --hostname '0.0.0.0' --port 3002 --dotenv .env.local",
+    "dev:prod": "nuxt --hostname '0.0.0.0' --port 3002 --dotenv .env.local",
+    "build": "yarn build:local",
+    "build:local": "nuxt build --dotenv .env.local",
     "build:preprod": "nuxt build --dotenv .env.preprod",
     "build:prod": "nuxt build --dotenv .env.prod",
     "start": "nuxt start --hostname '0.0.0.0' --port 3002",
-    "generate": "nuxt generate",
     "lint:js": "eslint --ext .js,.vue --ignore-path .gitignore .",
     "lint": "yarn lint:js",
     "test": "jest",