nuxt generate 3

This commit is contained in:
Valentin 2024-04-18 13:27:53 +02:00
parent 78a7b65475
commit 74ef2ae486
1 changed files with 3 additions and 1 deletions

View File

@ -410,6 +410,8 @@ if [[ "$answer" == "y" ]]; then
rm /var/www/html/* rm /var/www/html/*
chown www-data:www-data /var/www/html chown www-data:www-data /var/www/html
install_pkg cpulimit
su -s /bin/bash -c "cd ${repo_directory} &&\ su -s /bin/bash -c "cd ${repo_directory} &&\
git clone ${repo_url} &&\ git clone ${repo_url} &&\
cd ${front_directory} &&\ cd ${front_directory} &&\
@ -418,7 +420,7 @@ if [[ "$answer" == "y" ]]; then
echo \"URL=https://${domain_name}\" >> .env &&\ echo \"URL=https://${domain_name}\" >> .env &&\
echo \"DIRECTUS_URL=https://cms.${domain_name}\" >> .env &&\ echo \"DIRECTUS_URL=https://cms.${domain_name}\" >> .env &&\
npm install -y &&\ npm install -y &&\
npm run generate --prerender" www-data cpulimit -l 80 npm run generate --prerender" www-data
cp -r "${front_directory}/.output/public" /var/www/html cp -r "${front_directory}/.output/public" /var/www/html