modif de webhook.sh

This commit is contained in:
Valentin 2024-02-27 13:16:17 +01:00
parent 32e290e03c
commit f192e4bcbe
2 changed files with 7 additions and 4 deletions

View File

@ -3,8 +3,10 @@ repo_name=$1
cd /var/www/repositories/$repo_name
git pull origin prod
tmux send-keys -t directus C-c
npm i
npm install -y
npx nuxt telemetry disable
npm run build
tmux send-keys -t front C-c
tmux send-keys -t front \"cd /var/www/repositories/${repo_name} && node .output/server/index.mjs\" C-m
tmux send-keys -t directus \"npx directus start\" C-m
tmux send-keys -t front "cd /var/www/repositories/${repo_name} && node .output/server/index.mjs" C-m
cms_dir=$(ls -d /var/www/repositories/cms*/)
tmux send-keys -t directus "cd ${cms_dir} && npx directus start" C-m

View File

@ -355,7 +355,7 @@ if [[ "$answer" == "y" ]]; then
touch /var/www/.nuxtrc
echo "telemetry.consent=0" > /var/www/.nuxtrc
echo "telemetry.enabled=true" >> /var/www/.nuxtrc
echo "telemetry.enabled=false" >> /var/www/.nuxtrc
chown -R www-data:www-data /var/www/.nuxtrc
su -s /bin/bash -c "cd ${repo_directory} &&\
@ -429,3 +429,4 @@ apt purge expect
# IMPORT DIRECTUS FULL DB
# CADDYFILE EN JSON
# MÀJ
# reboot a running system