début de www-data installe node
This commit is contained in:
parent
e912c49481
commit
24728c990f
|
@ -33,6 +33,7 @@ if (json_last_error() !== JSON_ERROR_NONE) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// success, do something
|
// success, do something
|
||||||
|
$repo_name = $decoded['repository']['name'];
|
||||||
echo "launching hook script ";
|
echo "launching hook script ";
|
||||||
shell_exec('sh ../webhook/webhook.sh 2>&1');
|
echo shell_exec('bash ../webhook/webhook.sh ' . $repo_name . ' 2>&1');
|
||||||
?>
|
?>
|
|
@ -1,15 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
username=$(getent passwd 1000 | cut -d: -f1)
|
username=$(getent passwd 1000 | cut -d: -f1)
|
||||||
cd /home/$username
|
repo_name=$1
|
||||||
directories=$(find . -maxdepth 1 -type d -printf "%f\n")
|
cd /home/$username/$repo_name
|
||||||
for dir in $directories; do
|
pwd
|
||||||
if [[ ! "$dir" =~ ^cms ]]; then
|
|
||||||
cd "$dir" || exit
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
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\"
|
#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 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 \"npx directus start\" C-m
|
Loading…
Reference in New Issue