nuxt generate 3
This commit is contained in:
parent
78a7b65475
commit
74ef2ae486
|
@ -410,6 +410,8 @@ 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} &&\
|
||||
|
@ -418,7 +420,7 @@ if [[ "$answer" == "y" ]]; then
|
|||
echo \"URL=https://${domain_name}\" >> .env &&\
|
||||
echo \"DIRECTUS_URL=https://cms.${domain_name}\" >> .env &&\
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue