From 22d5bbdde2799dff402e3e01120c1ad94cfb51e0 Mon Sep 17 00:00:00 2001 From: Valentin Date: Thu, 18 Apr 2024 14:49:53 +0200 Subject: [PATCH] nuxt generate 4 node limit --- install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index f083e28..0d161b5 100644 --- a/install.sh +++ b/install.sh @@ -410,8 +410,6 @@ if [[ "$answer" == "y" ]]; then rm /var/www/html/* chown www-data:www-data /var/www/html - install_pkg cpulimit - su -s /bin/bash -c "cd ${repo_directory} &&\ git clone ${repo_url} &&\ cd ${front_directory} &&\ @@ -419,8 +417,8 @@ if [[ "$answer" == "y" ]]; then echo \"DIRECTUS_API_TOKEN=${website_token}\" > .env &&\ echo \"URL=https://${domain_name}\" >> .env &&\ echo \"DIRECTUS_URL=https://cms.${domain_name}\" >> .env &&\ - npm install -y &&\ - cpulimit -l 80 npm run generate --prerender" www-data + node --max-old-space-size=250 `which npm` install -y &&\ + node --max-old-space-size=250 `which npm` run generate --prerender" www-data cp -r "${front_directory}/.output/public" /var/www/html