From 17df9f3b83b18990fd7c7db827a76c266ba6ce0e Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 17 Feb 2023 09:44:46 +0700 Subject: [PATCH] try --- scripts/install | 2 +- sources/patches/app-03-visitor.patch | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 5d8f06f..dbb8ce4 100755 --- a/scripts/install +++ b/scripts/install @@ -217,7 +217,7 @@ ynh_add_nginx_config pushd "$final_path" ynh_use_nodejs - export NODE_OPTIONS=--max_old_space_size=1024 + export NODE_OPTIONS=--max_old_space_size=1536 ynh_script_progression --message="Fetching Yarn dev dependencies... This can be very long, be patient !" --weight=18 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --no-optional --frozen-lockfile --network-timeout 1000000000 2>&1 ynh_script_progression --message="Cleaning cache... " --weight=3 diff --git a/sources/patches/app-03-visitor.patch b/sources/patches/app-03-visitor.patch index 6f9095c..18376e9 100644 --- a/sources/patches/app-03-visitor.patch +++ b/sources/patches/app-03-visitor.patch @@ -113,9 +113,18 @@ index 352d1993a..5e3c24636 100644 version "0.4.1" resolved "https://registry.yarnpkg.com/pkginfo/-/pkginfo-0.4.1.tgz#b5418ef0439de5425fc4995042dced14fb2a84ff" diff --git a/package.json b/package.json -index 787991dc1..7d610c010 100644 +index 787991dc1..2191c20c2 100644 --- a/package.json +++ b/package.json +@@ -8,7 +8,7 @@ + "copy:i18n": "mkdir -p ./build/shared/i18n && cp -R ./shared/i18n/locales ./build/shared/i18n", + "build:i18n": "i18next --silent '{shared,app,server,plugins}/**/*.{ts,tsx}' && yarn copy:i18n", + "build:server": "./build.sh", +- "build": "yarn clean && yarn vite:build && yarn build:i18n && yarn build:server", ++ "build": "yarn clean && NODE_OPTIONS='--max-old-space-size=1536' yarn vite:build && yarn build:i18n && NODE_OPTIONS='--max-old-space-size=1536' yarn build:server", + "start": "node ./build/server/index.js", + "dev": "NODE_ENV=development yarn concurrently -n api,collaboration -c \"blue,magenta\" \"node --inspect=0.0.0.0 build/server/index.js --services=collaboration,websockets,admin,web,worker\"", + "dev:backend": "nodemon --exec \"yarn build:server && yarn dev\" -e js,ts,tsx --ignore build/ --ignore app/ --ignore shared/editor", @@ -150,6 +150,7 @@ "passport": "^0.6.0", "passport-google-oauth2": "^0.2.0", @@ -123,4 +132,4 @@ index 787991dc1..7d610c010 100644 + "passport-req": "^0.1.1", "passport-slack-oauth2": "^1.1.1", "pg": "^8.8.0", - "pg-hstore": "^2.3.4", + "pg-hstore": "^2.3.4", \ No newline at end of file