correction de ce maudit bug en fait .nuxtrc c'est un fichier pas un dossier
This commit is contained in:
parent
ffb7cb6372
commit
75220e3b60
|
@ -2,9 +2,9 @@
|
|||
username=$(getent passwd 1000 | cut -d: -f1)
|
||||
repo_name=$1
|
||||
cd /home/$username/$repo_name
|
||||
pwd
|
||||
git pull origin prod
|
||||
#tmux send-keys -t directus C-c
|
||||
#NUXT_TELEMETRY_DISABLED=1 bash -c \"npm run build\"
|
||||
#tmux send-keys -t front \"cd /home/${username}/${front_folder} && node .output/server/index.mjs\" C-m
|
||||
#tmux send-keys -t directus \"npx directus start\" C-m
|
||||
tmux send-keys -t directus C-c
|
||||
npm i
|
||||
npm run build
|
||||
tmux send-keys -t front \"cd /home/${username}/${front_folder} && node .output/server/index.mjs\" C-m
|
||||
tmux send-keys -t directus \"npx directus start\" C-m
|
|
@ -205,7 +205,7 @@ if [[ "$answer" == "y" ]]; then
|
|||
ln -sf /var/www/.nvm/versions/node/v18.19.1/bin/node /usr/bin/node
|
||||
ln -sf /var/www/.nvm/versions/node/v18.19.1/bin/npm /usr/bin/npm
|
||||
ln -sf /var/www/.nvm/versions/node/v18.19.1/bin/npx /usr/bin/npx
|
||||
|
||||
|
||||
echo -e "${PURPLE}${BOLD}Node installed${RESET}";
|
||||
fi
|
||||
|
||||
|
@ -353,7 +353,9 @@ if [[ "$answer" == "y" ]]; then
|
|||
read -s website_token
|
||||
fi
|
||||
|
||||
mkdir /var/www/.nuxtrc
|
||||
touch /var/www/.nuxtrc
|
||||
echo "telemetry.consent=0" > /var/www/.nuxtrc
|
||||
echo "telemetry.enabled=true" >> /var/www/.nuxtrc
|
||||
chown -R www-data:www-data /var/www/.nuxtrc
|
||||
|
||||
su -s /bin/bash -c "cd ${repo_directory} &&\
|
||||
|
|
Loading…
Reference in New Issue