From 75220e3b608f4ad30ac79dc0791375c2c1f83d2c Mon Sep 17 00:00:00 2001 From: Valentin Date: Mon, 26 Feb 2024 17:57:56 +0100 Subject: [PATCH] correction de ce maudit bug en fait .nuxtrc c'est un fichier pas un dossier --- assets/webhook.sh | 10 +++++----- install.sh | 6 ++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/assets/webhook.sh b/assets/webhook.sh index 2a504ba..2f4eb19 100644 --- a/assets/webhook.sh +++ b/assets/webhook.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/install.sh b/install.sh index 37bf32f..51e98ce 100644 --- a/install.sh +++ b/install.sh @@ -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} &&\