Кемеровские программисты php общаются здесь
-
Anonymous
Shell Exec работает неправильно, когда Exec во время Webhook
Сообщение
Anonymous »
У меня есть скрипт Shell для развертывания проекта от Dev. < /p>
Код: Выделить всё
#!/bin/bash
echo "****** Getting latest pull ******"
cd "../../"
git fetch
git reset --hard origin/docs_autopull_build
git rebase --abort
git pull origin dev
echo "****** Building project ******"
gulp css
gulp scripts
cd "public_html/docs/"
echo "****** Building docs ******"
npm run styleguide:build
echo "******************************************"
< /code>
Я проверяю его через файл php < /p>
Подробнее здесь: [url]https://stackoverflow.com/questions/77245756/shell-exec-works-wrong-while-exec-during-webhook[/url]
1740065705
Anonymous
У меня есть скрипт Shell для развертывания проекта от Dev. < /p>
[code]#!/bin/bash
echo "****** Getting latest pull ******"
cd "../../"
git fetch
git reset --hard origin/docs_autopull_build
git rebase --abort
git pull origin dev
echo "****** Building project ******"
gulp css
gulp scripts
cd "public_html/docs/"
echo "****** Building docs ******"
npm run styleguide:build
echo "******************************************"
< /code>
Я проверяю его через файл php < /p>
Подробнее здесь: [url]https://stackoverflow.com/questions/77245756/shell-exec-works-wrong-while-exec-during-webhook[/url]