correction de ce maudit bug en fait .nuxtrc c'est un fichier pas un dossier

This commit is contained in:
Valentin 2024-02-26 17:57:56 +01:00
parent ffb7cb6372
commit 75220e3b60
2 changed files with 9 additions and 7 deletions

View File

@ -2,9 +2,9 @@
username=$(getent passwd 1000 | cut -d: -f1) username=$(getent passwd 1000 | cut -d: -f1)
repo_name=$1 repo_name=$1
cd /home/$username/$repo_name cd /home/$username/$repo_name
pwd
git pull origin prod git pull origin prod
#tmux send-keys -t directus C-c tmux send-keys -t directus C-c
#NUXT_TELEMETRY_DISABLED=1 bash -c \"npm run build\" npm i
#tmux send-keys -t front \"cd /home/${username}/${front_folder} && node .output/server/index.mjs\" C-m npm run build
#tmux send-keys -t directus \"npx directus start\" C-m 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

View File

@ -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/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/npm /usr/bin/npm
ln -sf /var/www/.nvm/versions/node/v18.19.1/bin/npx /usr/bin/npx ln -sf /var/www/.nvm/versions/node/v18.19.1/bin/npx /usr/bin/npx
echo -e "${PURPLE}${BOLD}Node installed${RESET}"; echo -e "${PURPLE}${BOLD}Node installed${RESET}";
fi fi
@ -353,7 +353,9 @@ if [[ "$answer" == "y" ]]; then
read -s website_token read -s website_token
fi 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 chown -R www-data:www-data /var/www/.nuxtrc
su -s /bin/bash -c "cd ${repo_directory} &&\ su -s /bin/bash -c "cd ${repo_directory} &&\