Add proxy site and alias to CI

This commit is contained in:
VirtuBox
2023-08-26 15:32:07 +02:00
parent 9c66cd751a
commit 80528ce26a

View File

@@ -68,7 +68,41 @@ for site in $site_types; do
fi fi
done done
echo echo
echo
echo -e "${CGREEN}#############################################${CEND}" echo -e "${CGREEN}#############################################${CEND}"
echo -e ' Proxy site create '
echo -e "${CGREEN}#############################################${CEND}"
echo
if {
wo site create proxy.net --proxy=127.0.0.1:3000
} >>/var/log/wo/test.log; then
echo -ne " Creating proxy.net [${CGREEN}OK${CEND}]\\r"
echo -ne '\n'
else
echo -e " Creating proxy.net [${CRED}FAIL${CEND}]"
echo -ne '\n'
exit_script
fi
echo
echo
echo
echo -e "${CGREEN}#############################################${CEND}"
echo -e ' Alias site create '
echo -e "${CGREEN}#############################################${CEND}"
echo
if {
wo site create alias.net --alias anothersite.net
} >>/var/log/wo/test.log; then
echo -ne " Creating alias.net [${CGREEN}OK${CEND}]\\r"
echo -ne '\n'
else
echo -e " Creating alias.net [${CRED}FAIL${CEND}]"
echo -ne '\n'
exit_script
fi
echo
echo -e "${CGREEN}#############################################${CEND}"
echo
echo echo
wo site info php.net wo site info php.net
echo echo
@@ -300,18 +334,18 @@ echo -e "${CGREEN}#############################################${CEND}"
echo -e ' wo stack migrate --mariadb ' echo -e ' wo stack migrate --mariadb '
echo -e "${CGREEN}#############################################${CEND}" echo -e "${CGREEN}#############################################${CEND}"
echo -ne " Upgrading mariadb [..]\r" echo -ne " Upgrading mariadb [..]\r"
if { if {
wo stack migrate --mariadb --force --ci wo stack migrate --mariadb --force --ci
} >>/var/log/wo/test.log; then } >>/var/log/wo/test.log; then
echo -ne " Upgrading mariadb [${CGREEN}OK${CEND}]\\r" echo -ne " Upgrading mariadb [${CGREEN}OK${CEND}]\\r"
echo -ne '\n' echo -ne '\n'
else else
echo -e " Upgrading mariadb [${CRED}FAIL${CEND}]" echo -e " Upgrading mariadb [${CRED}FAIL${CEND}]"
echo -ne '\n' echo -ne '\n'
exit_script exit_script
fi fi
echo -e "${CGREEN}#############################################${CEND}" echo -e "${CGREEN}#############################################${CEND}"
echo -e ' wo clean ' echo -e ' wo clean '